in reply to pass command line parameters
#!/usr/bin/perl use strict; use warnings; my (@args) = @ARGV; print "args = @args\n";
Call this script with some arguments:br> perl x.pl -a b -c d -g hask
It would produce an output:
args = -a b -c d -g hask
At this point you would have to do the work of parsing through the array and grouping what you want where.
Hope that helps!
|
|---|