On Wed, Oct 03, 2007 at 05:23:35AM +0100, Johannes Schindelin wrote:Try "perldoc strict" for details. I think he means reformatting to if (condition) { } elsif (condition) { } It's quite common if you have a dispatch function, but obviously not required. print <<EOF; foo EOF HERE-docs necessarily break indentation unless you strip it out manually (which is inefficient and ugly). But two things that might make that look better are using qq// (to avoid having to escape quotes) and interpolating the variables: . qq/." Generator: $self->{generator}\n/ It's in perlop, but it's basically a fancy way of double-quoting, except that you get to choose the delimiter. I think you might be confused about how the 's' modifier works. You are not using it, so '.' is the same as '[^\n]'. Perl will always match a newline if it's in your regex. If you specify 'm', then it will also allow '^' and '$' to match at line boundaries (instead of just at the beginning and end of the string). -Peff - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Herbert Poetzl | Re: [ckrm-tech] [PATCH 0/2] resource control file system - aka containers on top o... |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Mark Lord | Re: 2.6.25-rc7: Ugh. |
| Cornelia Huck | Re: 2.6.25-rc3-mm1 |
git: | |
| Lea Wiemann | [PATCH 0/3] Git::Repo API and gitweb caching |
| Randal L. Schwartz | Re: pull into dirty working tree |
| Johannes Schindelin | Re: [PATCH] better git-submodule status output |
| Johannes Schindelin | Re: [PATCH] Add a new lstat and fstat implementation based on Win32 API |
| Richard Stallman | Re: Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| thacrazze | Multiboot Windows XP + OpenBSD doesnt work |
| askthelist | Packets Per Second Limit? |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Stephen Pierce | SLS |
| drew | Re: Linux-0.12 |
| Sunando Sen | Re: [Q] "Cannot execute /bin/*sh: Permission denied" prevents login |
