Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Comandline arguements when perl code is getting executed from command line

by Thelonius (Priest)
on Jan 16, 2007 at 06:39 UTC ( [id://594862]=note: print w/replies, xml ) Need Help??


in reply to Comandline arguements when perl code is getting executed from command line

This should work:
perl -slne '/TABLE/ && print "$ARGV:$_:$type"' -- -type=$type $file_na +me
See the -s swith in the perlrun manpage.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found