NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
de-aliasing? (Score:1)
Re:de-aliasing? (Score:2)
Bingo! I needed to delete select pairs of items from an import list, but I couldn't do this:
The array slice assignment gave me a "modification of read-only value" error, hence the @_ = @_; statement.
It all feels rather clumsy, but it works.
Re:de-aliasing? (Score:1)
Reply to This
Parent
Re:de-aliasing? (Score:2)
It's because I'm subclassing another module which imports and I do and old trick:
This doesn't update caller so I have no worries about whether or not the superclass checks the calling package and gets it wrong. However, it requires that @_ be present. By copying that variable to a separate array, I'd essentially be doing this:
I didn't see any value in introducing a temporary variable.
Re:de-aliasing? (Score:1)
You can’t adjust your cursor(s) to account for the missing elements?
(Btw, I guessed that it was for de-aliasing before I read the comments saying so.)