in reply to Re^3: Slurping search-replace patterns from a file
in thread RESOLVED: Slurping search-replace patterns from a file
Hope I didn't miss anything...
That's the crucial point: You never know. Perl is a language with a very complex syntax (compared to all other programming languages that I know of) that you can basically never be sure if you approach things in this way.
I thought I was quite confident with Perl's syntax, until I found out that you can have whitespaces between the sigil and the variable, and that even works in string interpolation:
$ perl -wle 'my $x = 3; print "x: $ x"' x: 3
I certainly didn't expect that.
What I learned from this is to never assume that you know every detail of Perl syntax, so I won't be sure that I've covered all corner cases. Can you be?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Slurping search-replace patterns from a file
by gone2015 (Deacon) on Oct 14, 2008 at 20:14 UTC | |
by HKS (Acolyte) on Oct 20, 2008 at 20:47 UTC |