scalar number or string?

2003-01-19 Thread Jacques Lederer
Hello, When you write $calc=3+5-2; print $calc."\n"; you get 6. (number, not the string "3+5-2") When you write while () { $calc=$_; print $calc."\n"; last; } if you run that last one and type 3+5-2, you get 3+5-2.(string "3+5-2", not the number 6) Why is it so? And how can I get it to

Fw: pid

2003-01-19 Thread Jacques Lederer
- Original Message - From: "Jacques Lederer" <[EMAIL PROTECTED]> To: "Paul Johnson" <[EMAIL PROTECTED]> Sent: Sunday, January 19, 2003 8:32 PM Subject: Re: pid > OK. Thanks very much, the eval thing does work. > I have another one now, on another s