that's wrong, context matters (LHS) not input (RHS)
DB<9> print reverse "text" # list context text DB<10> print scalar reverse "text" # scalar context txet DB<11> $a= reverse "text" # scalar DB<12> print $a # still print LIST, but $a is +already reversed txet
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^3: reverse is not reversing
by LanX
in thread reverse is not reversing
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |