Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How can I make it to a one liner

by Punitha (Priest)
on Oct 08, 2007 at 07:15 UTC ( #643406=note: print w/replies, xml ) Need Help??


in reply to How can I make it to a one liner

Hi greatshots,

This may be useful for you

while (my $line = <DATA>){ my $i=0; chomp($line); my @array = split(',',$line); while($i<=$#array){ print "$array[$i+2]\n"; $i++; } }

Punitha

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://643406]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2018-09-23 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (191 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!