Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: strlen like function in perl

by wog (Curate)
on Dec 18, 2001 at 01:48 UTC ( #132681=note: print w/replies, xml ) Need Help??

in reply to strlen like function in perl

You're looking for length.

update: Though, if golf is what you want, I've heard y///c be used to get the length of $_. (It's one character shorter. And, IIRC, that trick is credited to Abigail.) (y///c or any of its equivilents is not reccommended for code you plan on actually using, of course.)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://132681]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2016-10-28 15:36 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (386 votes). Check out past polls.