in reply to argument to delete function

As far as I know, delete and exists are special-cased by the parser, so you can't write your own function that behaves like either of them in pure Perl. (Might be possible with XS, not sure).

Replies are listed 'Best First'.
Re^2: argument to delete function
by ssandv (Hermit) on Jun 15, 2010 at 18:32 UTC

    Should be doable with a source filter, so technically Perl, though "pure" might be a very, very strong word to use with regard to source filters. :-)

    Note to OP: no, you don't want to write a source filter.