in reply to Deleting from front of string

$_ = "just another perl hacker"; $_ = reverse, chop, chop && print scalar reverse;

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
Re: Re: Deleting from front of string
by blakem (Monsignor) on Oct 05, 2001 at 03:11 UTC
    Ah, but what if you had some "evil" string such as:
    $_ = '10.) just another perl hacker';

    -Blake

      How about
      my $i; print join '', grep $i++>1, split //, '#!just another perl hacker';
      $_ = '10.) just another perl hacker'; $_ = reverse,chop,chop,print scalar reverse;

      Perl a problem for every solution solution for every problem

      cheers

      tachyon

      s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print