in reply to Re: sorting a hash that's in another file
in thread sorting a hash that's in another file

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

Replies are listed 'Best First'.
Re: sorting a hash that's in another file
by Abigail-II (Bishop) on Jul 24, 2003 at 06:15 UTC
    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