I am appalled that that works. I thought perlrun was being figurative when it described -p, but it seems not so.
[EMAIL PROTECTED]:~/work$ perl -MO=Deparse -pe ' } { $_="foo\n"' /dev/null LINE: while (defined($_ = <ARGV>)) { (); } { $_ = "foo\n"; } continue { print $_; } -e syntax OK [EMAIL PROTECTED]:~/work$ perl -MO=Deparse -pe '$_="foo\n"' /dev/null LINE: while (defined($_ = <ARGV>)) { $_ = "foo\n"; } continue { print $_; } -e syntax OK On Fri, 6 Feb 2004 [EMAIL PROTECTED] wrote: > > > What does the construct "}{" mean? As in > > > $ perl -pe ' } { $_="foo\n"' /dev/null > foo > > I figure it has to do with how the -p switch affects the script that > is passed to the interpreter. Is this documented anywhere? > > kj >