in reply to Re: Re: Re: Getting args
in thread Getting args
I was a lot confused
OR
I screwed that one up good. This is better and tested
learning too monk2b
#!/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
In Section
Seekers of Perl Wisdom