For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > April 2005 > Re: REGEXP removing - il- - -b-f and - il- - - - f









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: REGEXP removing - il- - -b-f and - il- - - - f
Ing. Branislav Gerzo

2005-04-27, 3:56 pm

Jay Savage [JS], on Wednesday, April 27, 2005 at 10:26 (-0400)
thoughtfully wrote the following:

JS> If all you want is the last column, this is a really long way to go about it.
JS> while (<V4> ) {
JS> print (split)[7];
JS> print "\n";
JS> }

(split)[-1] is better, not ?

--

How do you protect mail on web? I use http://www.2pu.net

[3.141592653589793238642643389504197169.... there's PI in]


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com