@array=split( /-/, $sites); # from perldoc, it seems better to use a p +attern rather than a string if ($array[0] eq "three") # $array0 != $array[0] { print "three "; } if ($array[1] eq "seven") { print "seven "; }
-- PerlMonger::Paris(http => 'paris.pm.org');
In reply to Re: Parsing Arrays
by OeufMayo
in thread Parsing Arrays
by jasmine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |