Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread Mr. Shawn H. Corey
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

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread Sonika Sachdeva
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)

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread JupiterHost.Net
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

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread Sonika Sachdeva
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

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread Sonika Sachdeva
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. >

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread Mr. Shawn H. Corey
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

Re: FILE::copy gives error undefined subroutine

2006-03-16 Thread Dermot Paikkos
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. > >

FILE::copy gives error undefined subroutine

2006-03-16 Thread Sonika Sachdeva
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