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?
[hippo]: It's always good to start the day with a laugh and Re^2: Subroutine processes only one file in the directory has genuinely made me do so. Well done, sridhar56!

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-05-26 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?