On Thu, Apr 17, 2008 at 7:28 AM, Martin Barth <[EMAIL PROTECTED]> wrote:
> if you're trying to set just a environment variable for the perl script
>  then you can do (in your shell):
>
>
>  $ export CCASE_NO_FILE_HEADER=yes
>
> $ perl /home/m.belgaonkar/merge_latest.pl
>
>  if you want to set the variable for another task (in your perl code):
>
>
>  #!/usr/bin/perl
>  use strict;
>  ..your perl code...
>  qx(CCASE_NO_FILE_HEADER=yes perl /home/m.belgaonkar/merge_latest.pl);
>  ..more perl code...
anip

Or if many programs need to see the value you can say

$ENV{CCASE_NO_FILE_HEADER} = "yes";

my @merge = qx(perl /home/m.belgaonkar/merge_latest.pl);
my @other = qx(perl /home/m.belgaonkar/other.pl);

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to