in reply to foreach funny business

In mychop shift() gives you a copy of the string which you can modify.

Replies are listed 'Best First'.
Re^2: foreach funny business
by Sidhekin (Priest) on Jun 29, 2006 at 19:52 UTC

    In mychop shift() gives you a copy of the string which you can modify.

    Nope, thanks to the prototype (\$), shift() gives you a copy of a reference to the string, which (when derefed), you really should not be able to modify.

    print "Just another Perl ${\(trickster and hacker)},"
    The Sidhekin proves Sidhe did it!