I am trying to understand the correct way to define
variables and their scope.
Here are two simple PERL ( test1.pl and test2.pl
)scripts. test1.pl work fine, while test2.pl does not.
Would appreciate any help in understanding why
test2.pl is complaining about "Global symbols"
Thanks
PN
test
I am trying to figure out if there is a way to :
a) set an ENV variable from within a perl script and
then print out it's value from within the same shell.
Here is the code that I am trying to use:
#!/usr/bin/perl -w
use strict;
# set some environment variables.
system(`setenv MY_VAR "test"`
I have two diretories ( DATA and TEST). The data
directory has several subdirectories under it. I am
trying to find a Perl Module/function, that will allow
me to copy all of the contents of DATA into TEST.
Is there a module that comes with the standard PERL
distribution that will allow me to do t
Hello,
I am using the following code to do two things:
1) create a unique directory name using @ARGV, and
2) recursively copy the contents of a source directory
into the target directories.
However, when I attempt to do this, I am getting the
following errors about infinite loops.
% perl copy.
Date: Thu, 9 Aug 2001 05:16:38 -0700 (PDT)
From: perl newbie <[EMAIL PROTECTED]> | Block
Address | Add to Address Book
Subject: Re: recursive file copy
To: [EMAIL PROTECTED]
Hello,
I am using the following code to do two things:
1) create a unique directory name using