Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: print the array using command line arguements

by ocs (Monk)
on Nov 30, 2006 at 08:26 UTC ( [id://586898]=note: print w/replies, xml ) Need Help??


in reply to print the array using command line arguements

Hi, you can also try this:
#!/usr/bin/perl -wl use strict; my @array = (11, 12, 13, 14, 15); my @new = map { $array[$_] } @ARGV; print "@new";

Log In?
Username:
Password:

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

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

    No recent polls found