Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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?
[TCLion]: DateTime::Format:: Flexible seems to have a lot of dependents, taking a while to install

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-03-23 15:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (289 votes). Check out past polls.