in reply to Debuging Perl Script

You should make sure the regex matches before using captured values:
if (m{^(.*)/(tp_\w+)}i) { my ( $pathPrefix, $tpname ) = ( $1 ? ( $1, $2 ) : ( '.', $_ ) ); # etc... }

Take a look at the Basic debugging checklist for other generic advice.

Replies are listed 'Best First'.
Re^2: Debuging Perl Script
by Anonymous Monk on May 09, 2013 at 03:17 UTC