perl -lpe '}{*_=*.}{' file
Ooh, an obfuscated verbose way of writing:
perl -lpe'}{$_=$.' file
Huh? Could someone explain this? The "}{" makes no sense to me...
I thought the same thing, when I read it! I'm still not sure I get it, but perlrun say the -p switch expands to:
LINE: while (<>) { ... # your program goes here } continue { print or die "-p destination: $!\n"; }
If your string is literally dropped in there, it might end the while loop and then start another block.
Just a guess.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>