JupiterHost.Net wrote:
a) FILE::copy probably doesn;t exist but rather: File::Copy
Sadly :( FILE::copy does exist in some operating systems; like MS DOS
and Mac OX S. This is because they do not distinguish between uppercase
and lowercase in file names. Perl seems to find the correct module
Thanks for the pointers.
On 3/16/06, JupiterHost.Net <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> >
>
> Please try to write cleaner code, its hard to read :) (See "Perl Best
> Practices" by Damian Conway, Oreilley)
>
> >
> > undefined subroutine &main::copy
> >
> > What could be the mistake?
>
> a)
Hello,
Please try to write cleaner code, its hard to read :) (See "Perl Best
Practices" by Damian Conway, Oreilley)
undefined subroutine &main::copy
What could be the mistake?
a) FILE::copy probably doesn;t exist but rather: File::Copy
b) you have not imported copy() into main::
so
It works . Thank you all.
On 3/16/06, Sonika Sachdeva <[EMAIL PROTECTED]> wrote:
>
> Thanks for your response.
>
> I did change the module name. It works but now it hangs at the copy
> command without giving any warning/error. ( plz refer the code)
>
>
> thanks,
>
>
> On 3/16/06, Dermot Paikkos
Thanks for your response.
I did change the module name. It works but now it hangs at the copy command
without giving any warning/error. ( plz refer the code)
thanks,
On 3/16/06, Dermot Paikkos <[EMAIL PROTECTED]> wrote:
>
> Is that File::Copy or FILE::copy? The former is what you want.
> Dp.
>
Sonika Sachdeva wrote:
Hi All,
I have used FILE::copy , perl syntax check is OK.
and am getting the following error when it tries to perform the copy
function . This is on windows system.
That has to be: use File::Copy;
Case is important in Perl.
On certain OSes, like Mac OS X, case in file n
Is that File::Copy or FILE::copy? The former is what you want.
Dp.
On 16 Mar 2006 at 9:53, Sonika Sachdeva wrote:
> Hi All,
>
> I have used FILE::copy , perl syntax check is OK.
> and am getting the following error when it tries to perform the copy
> function . This is on windows system.
>
>
Hi All,
I have used FILE::copy , perl syntax check is OK.
and am getting the following error when it tries to perform the copy
function . This is on windows system.
my $retval=system("perl \"$SCRIPTDIR\\test.pl\" $FILEHASH{$filename}[3]") ;
if($retval != 0) {
print LOGHANDLE "Error while e