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

Re: new to perl

by monsoon (Pilgrim)
on Jul 13, 2012 at 14:44 UTC ( #981635=note: print w/ replies, xml ) Need Help??


in reply to new to perl

perl -e 'while(<>){ @words = split /\s/; print "Mypath\\MyPerl_2.pl @words[-1]\n"; }' inputfile.txt


Comment on Re: new to perl
Download Code
Re^2: new to perl
by kroz (Initiate) on Jul 16, 2012 at 06:03 UTC

    Tried this, didn't work - most likely i've done something wrong. Thank you for the help

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (14)
As of 2014-07-31 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls