terrible code about array matching...by Discipulus (Parson)
|on Nov 06, 2002 at 07:12 UTC||Need Help??|
Discipulus has asked for the
wisdom of the Perl Monks concerning the following question:
I'm still newbing around perl coding, suggest me something about the following problem and dont let me publish my neanderthal code..
SITUATION:I have a sub that return an array.The user put some parameters in @ARGV.
GOAL:I want verify that all argv input match with the first array before print it(but only if ALL match).
My first attempt was to give a big argoument to a if cicle but it was a flop.can I put a foreach cicle into a if condition?
My neanderthal code runs but it is terrible to my newbies eyes too.. plz suggestion..
greetings freom sunny roma