in reply to passing and processing code references

ELABORATION I would like to be able to do this (just like calling Perl's grep function:
x { print "$file.YYY" }

I dont want to have to bother with creating an anonymous subroutine.

Replies are listed 'Best First'.
RE: Re: passing and processing code references
by mirod (Canon) on Oct 11, 2000 at 17:55 UTC

    I dont want to have to bother with creating an anonymous subroutine.
    This kind of comment always puzzles me. Why would you bother exclude a probably conveninet solution to your problem without any specific reason? In this case what's wrong with anonymous subroutines? If there is a good reason please elaborate. That might give us some food for thought. Otherwise I don't really want to bother going through arbitrary hoops just for the sake of it.

    Just my 0.0229 Euro rant