sub after{ my $target=shift; shift @_ until $_[0] eq $target; return @ +_ };; @a = 'a'..'z';; print after( 'm', @a );; m n o p q r s t u v w x y z print after( 'e', @a );; e f g h i j k l m n o p q r s t u v w x y z print after( 'y', @a );; y z
Add another shift if you don't want the element you looked for.
In reply to Re: flip-flop flop
by BrowserUk
in thread flip-flop flop
by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |