in reply to Passing variables to subroutines using Getopt::Long
Try to run the code as follows
perl f.pl -user lakshmanan -password lakshmanan -fetch
The above way of executing the program, worked for me and I got the following output
We're now in fetch The vars are fetch 1 The user is lakshmanan The password is lakshmanan We're now in routine1 The vars for routine1 lakshmanan The user for routine1 is lakshmanan
Your Attempt May Fail, But Never Fail To Make An Attempt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing variables to subroutines using Getopt::Long
by gctaylor1 (Hermit) on Mar 21, 2009 at 04:02 UTC | |
by GrandFather (Saint) on Mar 21, 2009 at 08:03 UTC | |
by Anonymous Monk on Mar 21, 2009 at 08:01 UTC |