J
Jürgen Exner
Actually I agree with Purl Gurl. The OP did in fact ask how to pass those
paramaters which he named explicitely.
However I believe the solutions offered so far stop half way. After all, we
do know already which parameters to pass (the OP named then explicitely),
therefore it is just as well to just hardcode them in the callee, i.e. in
interface.pl.
Just add
my %data = (
field1 => 'f1val',
field2 => 'f2val'
);
my($dataref) = \%data;
to interface.pl and now $dataref is a reference to a hash containing exactly
the desired data as specified by the OP.
Much easier, no messy data passing, no IPC, ...
jue
paramaters which he named explicitely.
However I believe the solutions offered so far stop half way. After all, we
do know already which parameters to pass (the OP named then explicitely),
therefore it is just as well to just hardcode them in the callee, i.e. in
interface.pl.
Just add
my %data = (
field1 => 'f1val',
field2 => 'f2val'
);
my($dataref) = \%data;
to interface.pl and now $dataref is a reference to a hash containing exactly
the desired data as specified by the OP.
Much easier, no messy data passing, no IPC, ...
jue