We don't bite newbies here... much | |
PerlMonks |
Use command line argument in scriptby homer4all (Acolyte) |
on Dec 18, 2014 at 23:01 UTC ( [id://1110785]=perlquestion: print w/replies, xml ) | Need Help?? |
homer4all has asked for the wisdom of the Perl Monks concerning the following question:
Experts, How can we use value in sub which was accepted at script run?
DB: oracle 11gR2 I tried using $days = $ARGV[1], not sure but it doesn't work. Usage: ./delete_data.pl -days 30Does above delete all days together or it will use cursor and delete one day at a time? Deleting one day at a time using bind variable will give better performance. Thanks... Update Experts, How can we use value in sub which was accepted at script run?DB: oracle 11gR2 I tried using $days = $ARGV[0], not sure but it doesn't work. Usage: ./delete_data.pl -days 30I'm not able to display value for $days even in logfile. Not sure why above just don't work, I have used suggestion solution from comment. Thanks...
Back to
Seekers of Perl Wisdom
|
|