> I assume you want > > $str = $1 if $str =~ /(\d\d\s*$)/; > > always make sure to test for a match before using $1, $2, > etc. If you don't you may get a runtime warning.
Only when you try to use $str later when it is undefined. It should be checked, but perhaps not in the same place. This would break anything following that REQUIRES that change to be made - bad move. It might stop warnings, but it allows whatever WAS in $str to get through without modification... hope you can see that. Jonathan Paton __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]