in reply to Re^2: substr in nested foreach loop
in thread substr in nested foreach loop

Isn't the behavior of "my" with an "if" modifier unspecified? I think
my ($x, $y, $z) = ($line =~ /($num) ($num) ($num)\s*$/);
would do what you want here. If it doesn't match all three variables will be undefined.

Replies are listed 'Best First'.
Re^4: substr in nested foreach loop
by sarani (Sexton) on May 23, 2006 at 11:12 UTC
    okay, thank you.