R. Joseph Newton wrote:
Bryan Harris wrote:


perl -lpe '}{*_=*.}{' file

Ooh, an obfuscated verbose way of writing:


perl -lpe'}{$_=$.' file

Huh? Could someone explain this? The "}{" makes no sense to me...


Well, as Momma used to say:
"Just look the other way.  Ignore it, and maybe it will go away..."

I would not be at all surprised if the code above works, and does *something*.
I just prefer to use code that says what it is doing.


And you/Joseph are/is correct :)

Most employers (and a quiet a few IT managers) are not very Perl savvy and would like you Perl people (read POD) to be more like COBOL people (read BOOKS.)

Can we please leave the Perl Golf in the appropriate context or at least make a warning in/at the start of the message that the post may confuse beginners?

[Tim Toady Wrote This, not Bill]
http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?There's+More+Than+One+Way+To+Do+It

Cheers :)
-TIMTOWTDI-
__Sx__________________________________________
http://youve-reached-the.endoftheinternet.org/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to