Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Whatever happened to chomp?

by Zaxo (Archbishop)
on Dec 14, 2003 at 23:02 UTC ( [id://314702]=note: print w/replies, xml ) Need Help??


in reply to Whatever happened to chomp?

In numeric context, perl accepts numbers in a variable until it runs out of them:

$ perl -e' $_ = "123abc"; print 0+$_, $/' 123 $

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-24 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found