in reply to Passing variables
How are you loading the .pl file, and what do you expect it to do? The usual thing would be something like this,
The phrasing 'pass data to the file' sounds like you are trying some other usage. You should look at scoping, particularly file scope, to see what data is shared with a loaded file.# in foo.cgi: my $password = 'thesecret'; require 'thefile.pl'; my $encoded = encrypto( $password );
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing variables
by intranetman (Acolyte) on Sep 13, 2004 at 16:34 UTC | |
by Zaxo (Archbishop) on Sep 13, 2004 at 19:11 UTC | |
by intranetman (Acolyte) on Sep 15, 2004 at 19:32 UTC |