in reply to eval'ing strange scalar
Perl 5.8.0 on Solaris gives me 3338748. Perl 5.8.6 on Windows gives me 6742212.5.10.0 on Ubuntu 8.10 gives 451354452 B-) My thanks also to ikegami for the elucidation, but I am left wondering:
- what is it that m// is matching? The null string, presumably... so would that be different on the same machine at different times?
Answer: yes.
victor@pan:~$ perl -e 'print eval(+\//+\//+\//)."\n";' 411098964 victor@pan:~$ perl -e 'print eval(+\//+\//+\//)."\n";' 436080468 victor@pan:~$ perl -e 'print eval(+\//+\//+\//)."\n";' 415780692 victor@pan:~$
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: eval'ing strange scalar
by Zarchne (Novice) on Jan 24, 2009 at 04:26 UTC |