Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Pattern Matching Confusion

by davido (Archbishop)
on Aug 11, 2005 at 15:33 UTC ( #482996=note: print w/replies, xml ) Need Help??


in reply to Re: Pattern Matching Confusion
in thread Pattern Matching Confusion

You're trying to link to the length function at perldoc.com. That site is tremendously unstable these days, which is why the Monsatery's POD linking mechanism defaults to perldoc.perl.org. Using square brackets you can link to the pod like this: [doc://length] and get this result: length. Do be sure to spell it right when you link.

if (length($var) eq 58) { #do something }

...should use ==, not eq since you're doing a numeric comparison.


Dave

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://482996]
help
Chatterbox?
Tanktalus has to figure out why his cb talker isn't working :(
[choroba]: https?
[choroba]: That was at least why my cb talker wasn't working.
[Tanktalus]: curious, then, why the reader works :)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2018-07-15 21:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (326 votes). Check out past polls.

    Notices?