in reply to where is /\d+$/ result??
$+: The text matched by the last bracket of the last successful search pattern.
I don't see any parens in there.
orif ($frameDesc =~ /(\d+)$/ ) { print FH "FTP $1\n"; } else { print FH "FTP 0\n"; }
my $num = $frameDesc =~ /(\d+)$/ ? $1 : 0; print FH "FTP $num\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: where is /\d+$/ result??
by rightfield (Sexton) on May 04, 2008 at 01:14 UTC |