|
Posted by Joost Diepenmaat on March 6, 2008, 6:41 pm
Please log in for more thread options
> Now, I would like pass the range dynamically as option (Getopt::Long)
> to the script in order to avoid the changes in the script itself. What
> is the appropriate solution?
What did you try? The answer's pretty obvious:
# get $start and $end from Getopt::Long
for my $range ($start .. $end) {
# do stuff
}
note that this expects $end >= $start
--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
|