in reply to Re: When do you use chop insetad of comp?
in thread When do you use chop instead of chomp?

i use chop to rotate.

my $val = 123; $val = chop($val) . $val; print $val; # prints '312' my $val = 'abc'; $val = chop($val) . $val; print $val; # prints 'cab'

~Particle ;Þ

Replies are listed 'Best First'.
Re: Re: Re: When do you use chop insetad of chomp?
by shotgunefx (Parson) on Mar 03, 2002 at 07:28 UTC
    Pretty cool. Never would have ocurred to me. One of the things I love about Perl (besides making my life so much easier) is that even though I've used it every day for a few years there is still always something more to learn and one more way to do something..

    -Lee

    "To be civilized is to deny one's nature."