in reply to how to match and assign?
split is probably the easiest way to go here.
--my @values = split /\|/, $var; if ($values[4] eq $var) { # Values matched. # Use value in $values[10] } else { # values didn't match. }
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: how to match and assign?
by frankus (Priest) on Apr 24, 2001 at 14:13 UTC | |
by davorg (Chancellor) on Apr 24, 2001 at 15:11 UTC |