in reply to Re^3: howto strip the first char of a string?
in thread howto strip the first char of a string?
Yes you can. You don't even need to go as far as you're thinking about.
BEGIN { sub funky_reverse : lvalue {} *CORE::GLOBAL::reverse = \&funky_reverse; }
It doesn't help you, though. You really want to return an alias (or a list thereof), not any old lvalue(s). And that's not something you can do in vanilla Perl. You need something like Data::Alias.
Makeshifts last the longest.
|
|---|