F
frytaz
Hi there
I want to run my per script with arguments, for instance:
../script.pl -one value one text 1 -two value two text 2 -three value
three text 3
and i want to get those arguments in
$one = value one text 1
$two = value two text 2
$three = value three text 3
i tried with regular expression m/-one (.+?) -two (.+?) -three (.+?)/
and it works but when i mix-up arguments like:
../script.pl -two value two text 2 -three value three text 3 -one value
one text 1
then i need to use different regex.
Someone know other solution ?
Thanks in advance
I want to run my per script with arguments, for instance:
../script.pl -one value one text 1 -two value two text 2 -three value
three text 3
and i want to get those arguments in
$one = value one text 1
$two = value two text 2
$three = value three text 3
i tried with regular expression m/-one (.+?) -two (.+?) -three (.+?)/
and it works but when i mix-up arguments like:
../script.pl -two value two text 2 -three value three text 3 -one value
one text 1
then i need to use different regex.
Someone know other solution ?
Thanks in advance