[Israel.pm] how do i cut the first 2 characters/digits of a string?

Gabor Szabo gabor at perl.org.il
Thu Jul 15 04:41:39 PDT 2004


On Thu, 15 Jul 2004, Gaal Yahas wrote:

>      chop($_ = reverse); chop; $_ = reverse
>
> And a riddle!
>
> Why does this:
>
>      chop($_ = reverse); $_ = reverse chop
>
> not do the same thing?

Using the return value of chop ?

Gabor




More information about the Perl mailing list