Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: calling a subroutine from another subroutine

by toolic (Chancellor)
on Jul 08, 2012 at 19:26 UTC ( #980610=note: print w/ replies, xml ) Need Help??


in reply to Re: calling a subroutine from another subroutine
in thread calling a subroutine from another subroutine

Usage: $ARGV[0] -type[A|B] -OEMID id -version nnnn -out filename
I think you meant to use $0 instead of @ARGV:
$ARGV[0] is the first argument, not the program's command name itself. See $0 for the command name.


Comment on Re^2: calling a subroutine from another subroutine
Download Code
Re^3: calling a subroutine from another subroutine
by pemungkah (Priest) on Jul 08, 2012 at 21:47 UTC
    You're right, and I've made the edit in the code. Thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (15)
As of 2014-04-16 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (432 votes), past polls