Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Changing the numerical value from 0 to 1

by Kenosis (Priest)
on Jan 21, 2014 at 20:29 UTC ( [id://1071516]=note: print w/replies, xml ) Need Help??


in reply to Re: Changing the numerical value from 0 to 1
in thread Changing the numerical value from 0 to 1

You've made some very good points. I now think it would have been best to only offer s/^0$/1/--even though the OP said "Word boundaries work !", evidencing that s/\b0\b/1/ met his/her needs.

I'm not sure about your array elements. Cells don't contain the 007, 0.03 or 0.0 that you placed into an array (unless, of course, it's text, but the OP seems to suggest that s/he's dealing with numeric values). Those elements are the formatting results of the numeric values 7, .03 and 0, respectively.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-19 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found