Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: Re: Getting args

by monk2b (Pilgrim)
on Dec 11, 2001 at 21:38 UTC ( #130982=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Getting args
in thread Getting args

I was a lot confused
#!/usr/local/bin/perl -w use strict; my $d; $d = shift; #this wiill work print "$d\n"; #will print argument

OR
#!/usr/local/bin/perl -w use strict; die "argument required\n" unless defined $ARGV[0]; # will stop the scr +ipt if there is no argument print "This is what I ment $ARGV[0]\n";

I screwed that one up good. This is better and tested
learning too monk2b

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2022-05-25 20:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?