[Israel.pm] how do i cut the first 2 characters/digits of a string?
Gaal Yahas
gaal at forum2.org
Thu Jul 15 08:05:54 PDT 2004
On Thu, Jul 15, 2004 at 02:32:23PM +0000, Mikhael Goikhman wrote:
> Here is the riddle. What do you think the following does:
>
> $_ = reverse, chop, chop;
>
> Give an aproximate answer and then verify it by running.
> And now that you know what "$_ = reverse, chop, chop;" does, this one:
>
> $_ = reverse $_ = reverse, chop, chop;
>
> Give an aproximate answer and then verify it by running.
> I bet most of the camels will not be able to answer correctly here. :)
Nice riddle. (I got it right.) My unspoiling answer that shoots for the
camels: context!
--
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/
More information about the Perl
mailing list