Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Variable Data Lost

by elusion (Curate)
on Aug 26, 2002 at 02:54 UTC ( #192755=note: print w/replies, xml ) Need Help??


in reply to Re: Variable Data Lost
in thread Variable Data Lost

As far as the minus one being in quotes...

It doesn't really matter, because in perl, strings and numbers and numbers are strings. So while no quotes would be preferred, with quotes certainly works.

I would have to agree with your suggestion to use a regex, though.

elusion : http://matt.diephouse.com

Replies are listed 'Best First'.
Re: Re: Re: Variable Data Lost
by Cody Pendant (Prior) on Aug 26, 2002 at 02:58 UTC
    I think I was getting confused with JavaScript syntax myself there. Quotes will force a number to be a string in JS. But the day it's a variable, not just a constant, in those quotes, it will cause huge problems, won't it?
    --
    ($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2019-07-19 20:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?