You may find japhy's sexeger interesting.my $foo = "My lawyer is named will"; my $oof = scalar reverse $foo;
Update: Chady, it's a matter of self-documentation and of habit. By using explicit scalar() I say what I expect to happen, and with the habit of using it I can drop it into list context without concern. About the link, I'm delighted to have recommended it for a bowdlerware application.
After Compline,
Zaxo
In reply to Re: newkid confused
by Zaxo
in thread newkid confused: reverse then unreverse a string
by caciqueman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |