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;