in reply to newkid confused: reverse then unreverse a string
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: newkid confused
by Chady (Priest) on Apr 06, 2002 at 17:43 UTC | |
by swiftone (Curate) on Apr 07, 2002 at 17:09 UTC |