#!/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!
In reply to Re: pass command line parameters
by wulvrine
in thread pass command line parameters
by sombhotla
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |