Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Awk usage in perl

by helgi (Hermit)
on Aug 26, 2008 at 15:25 UTC( #706923=note: print w/replies, xml ) Need Help??


in reply to Awk usage in perl

use warnings; use strict; while (<DATA>) { chomp; my ($one,$two,$three,$four,$five) = split; print "$five\n"; } __END__ 1 222 ssss 1111 fgfg 2 333 ssse 2222 dshg 3 444 ssws 3333 sjsh 4 555 wwsw 4444 skss

--
Regards,
Helgi Briem
hbriem AT f-prot DOT com

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2016-08-29 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (409 votes). Check out past polls.