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

Re: Perl bug or what?

by kennethk (Monsignor)
on Mar 05, 2014 at 02:12 UTC ( #1077039=note: print w/ replies, xml ) Need Help??


in reply to Perl bug or what?

There is no known issue with the transformation you have described above.

Please read Basic debugging checklist. In order to be helpful here, the monks will need more context. Please take the two scripts which are displaying different behavior, and make them as simple as possible while still displaying the issue you mention. For example, I get successful conversion with the one-liner

perl -E '$string = "5abc"; $x = 0 + $string; print "$x\n"'
which ouptuts
5
Also, please wrap you code in <code> tags to avoid formatting headaches; see How do I post a question effectively?.

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re: Perl bug or what?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (20)
As of 2014-09-23 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (221 votes), past polls