Re: Variable scope and definition

2001-07-20 Thread perl newbie
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

Re: setting and importing ENV from within PERL

2001-07-26 Thread perl newbie
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"`

Recursive directory copy

2001-07-31 Thread perl newbie
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

Re: recursive file copy

2001-08-09 Thread perl newbie
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.

Recursive file copy

2001-08-09 Thread perl newbie
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