Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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

Replies are listed 'Best First'.
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 having an uproarious good time at the Monastery: (3)
As of 2016-07-30 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (265 votes). Check out past polls.