E
ExecMan
Hi,
I have created a file with a data structure in it. I want to include
that file into a number of scripts.
I have code like this:
my %SERVICES;
if (-e "hash_config") {
require "hash_config";
}
But it is not working?? The structure is just empty. The structure
is like the one I created with everyone's help:
%SERVICES = (
'tactical' => {
'service' => "tactical,
'url' => "tacticaltrader",
'from' => "Tactical Trader <tacticaltrader\@mail.com>",
'mailer' => "Tactical Trader Mailer",
'subject' => "Tactical Trader Summary",
'alert' => {
'GENERATE' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=0", 'command' => "eod-trader.pl
-t -M",},
'GENERATEBUY' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=1", 'command' => "trader.pl -t -
B -M",},
'GENERATESELL' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=2", 'command' => "trader.pl -t -
S -M",},
'SEND' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=0", 'command' => "eod-
trader.pl",},
'SENDBUY' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=1", 'command' => "trader.pl -
B",},
'SENDSELL' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=2", 'command' => "trader.pl -
S",},
'GENERATEINTRA' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=3", 'command' => "trader.pl -t -
I -M",},
'SENDINTRA' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=3", 'command' => "trader.pl",},
},
},
);
Help anyone? How do I make this an include so I can reference it?
Thanks!
I have created a file with a data structure in it. I want to include
that file into a number of scripts.
I have code like this:
my %SERVICES;
if (-e "hash_config") {
require "hash_config";
}
But it is not working?? The structure is just empty. The structure
is like the one I created with everyone's help:
%SERVICES = (
'tactical' => {
'service' => "tactical,
'url' => "tacticaltrader",
'from' => "Tactical Trader <tacticaltrader\@mail.com>",
'mailer' => "Tactical Trader Mailer",
'subject' => "Tactical Trader Summary",
'alert' => {
'GENERATE' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=0", 'command' => "eod-trader.pl
-t -M",},
'GENERATEBUY' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=1", 'command' => "trader.pl -t -
B -M",},
'GENERATESELL' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=2", 'command' => "trader.pl -t -
S -M",},
'SEND' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=0", 'command' => "eod-
trader.pl",},
'SENDBUY' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=1", 'command' => "trader.pl -
B",},
'SENDSELL' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=2", 'command' => "trader.pl -
S",},
'GENERATEINTRA' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=3", 'command' => "trader.pl -t -
I -M",},
'SENDINTRA' => { 'html' =>
"sid=SCt78s8Uf4Hml80&group_id=29&ctype=3", 'command' => "trader.pl",},
},
},
);
Help anyone? How do I make this an include so I can reference it?
Thanks!