Steve Bertrand wrote:
Sorry for being OT: If it's not too silly or crazy, I think I'm ready to
follow a golf thread. It doesn't appear as those mail lists do much
anymore. Would it be too much to ask for someone to start something so
us newbies could watch and follow along?

How about some one-liners?

The Perl Calculator (type 'exit' to quit):

perl -ple '$_=eval'

On Windows:

perl -ple "$_=eval"



The Poor Man's Grep, for when you're on Windows and don't have grep(1):

perl -nle "beg...@argv=glob(@ARGV)}/PATTERN/&&print" <file_specs>

Replace PATTERN with the regex you want to search for.


--
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

Regardless of how small the crowd is, there is always one in
it who has to find out the hard way that the laws of physics
applies to them too.


--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to