in reply to Re: include statement in perl?
in thread include statement in perl?

Just be careful that the ARGV filehandle is not currently open on another file, otherwise it won't quite do what you expected.

Update: localizing the entire *ARGV glob works, but doesn't work in less than recent Perls - it breaks on less than 5.8, IIRC 5.6 - see (tye)Re: Cheap idioms.

Makeshifts last the longest.

  • Comment on Re^2: include statement in perl? (idiom with caveats)

Replies are listed 'Best First'.
Re: Re^2: include statement in perl?
by BrowserUk (Patriarch) on May 31, 2003 at 12:26 UTC

    If it's good enough for tye, it's good enough for me:)


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller