Question : Export Variable with Perl

I have a perl script that I need to export a variable with.  This is what I have so far and it is not working:

  export $ENV{'GEN_FIXDATE'}="@qry_result[0] 00000000";

@qry_result[0] just contains a date value that is needed.

How can export this variable?  Obviously I can't just do it straight out using export.

Answer : Export Variable with Perl

$ENV{'GEN_FIXDATE'}="$qry_result[0] 00000000"; #or $ENV{'GEN_FIXDATE'}="@qry_result[0] 00000000";
can be seen by any process that is called by the script.
Random Solutions  
 
programming4us programming4us