http://qs321.pair.com?node_id=183687


in reply to Re: Re: Re: Re: Re: Re: Re: checking the end of line
in thread checking the end of line

If you're getting a syntax error, perhaps you typed it in wrong.

Perhaps you meant
if($path =~ /(\d+)$/ == 0) { print "No number found\n"; } else { print "number is $1\n"; }