in reply to sorting a hash that's in another file

You probably want any of use, require or do.

Abigail

  • Comment on Re: sorting a hash that's in another file

Replies are listed 'Best First'.
Re: Re: sorting a hash that's in another file
by alienhuman (Pilgrim) on Jul 23, 2003 at 21:16 UTC

    Abigail,

    That was my initial thought, but the problem that I'm running into is that (and I may be wrong here) those operators actually execute the specified file, and the file is a CGI script that expects various inputs--without which it won't run. Or rather, I don't know exactly what the effect would be (it's a 3500+ line module).

    Really what I need is some way to get the variables that are declared and use those in my script. Looking at the Camel, it doesn't seem like do, use, require do that sort of thing.

    Are my assumptions about those functions correct?

    AH

      If you want to "grab" a variable out of a program, you have two options: run the code, or parse the code. If you don't want to run it (and you don't), you'd have to parse Perl, unless you can assume something about your variable to make it easier to grab.

      Abigail