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

Re: How to check if a string contains more than 1 character?

by Laurent_R (Abbot)
on May 02, 2013 at 15:33 UTC ( #1031769=note: print w/replies, xml ) Need Help??


in reply to How to check if a string contains more than 1 character?

How about this one?

$ perl -e '$string= "f"; $a=7; print "larger than 1 \n" if length $str +ing > ($a*$a - ($a+1)*($a-1));' $ perl -e '$string= "foo"; $a=7; print "larger than 1 \n" if length $s +tring > ($a*$a - ($a+1)*($a-1));' larger than 1 $

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031769]
help
Chatterbox?
Discipulus Syracusis anicula deos cotidie obsecrabat ut Dionysius..

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2016-12-05 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (75 votes). Check out past polls.