SPUG: flip-flops
David Dyck
dcd at tc.fluke.com
Mon Feb 11 10:28:36 CST 2002
On 10 Feb 2002 at 14:47 -0500, Michael R. Wolf <MichaelRunningWolf at att.net>...:
> Note that dollar ($) means ...
> ... "last line" in the flip-flop.
>
> $body .= $_ if /^$/ .. $;
I don't think this does what you want
$ perl -wnle 'print "x$_" if 2 .. $;'
1
2
x2
3
4
as you can see. I think it is parsed
as the variable "$;", so it is true
all the time, an you only get ..
to be true once, as it goes false
the next time.
perldoc perlvar
$; The subscript separator for multidimensional array
emulation.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
More information about the spug-list
mailing list