Hi I'm currently testing my code that will soon implemented on the main thing.. at my test I have this array @name and there there is an input "Magnum,Cobray,Ingram"
I want to output only "Cobray" but it displayed no output in cmd
Here's the code:
@name = ("Magnunm,Cobray,Ingram"); $name = "@name"; if ($name =~ /Cobray/){ print "$name";}
Is something missing? Thank you very much for all the help
In reply to Can't get the desired output.. by astronogun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |