Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Variable Data Lost

by elusion (Curate)
on Aug 26, 2002 at 02:54 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://192755]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found