WC -Sx- Jones wrote:
> 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.)
Geez, and I still can't tell whether I'm a "Perl person". I use Perl as a medium
for programming, which I do in English. I see POD as documentation for the users of
modules. That is a rather different function than internal documentation. Tastes
differ, of course. I even found myself softening a bit when an old friend was
enthusiastically describing contests for the most compact code. On the whole,
though, I like the idea of writing code in way that make comments superfluous.
>
>
> 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?
Bingo! Now I remember what he called it! [chuckle] Hey, yeah, rock out, but steer
the newbies in the direction of coherency, and let them discover the joys of the
cryptic on their own.
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>