Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Re: Re: Re: Re: Re: Re: checking the end of line

by I0 (Priest)
on Jul 20, 2002 at 22:13 UTC ( [id://183687] : note . print w/replies, xml ) Need Help??


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"; }