On Tue, Apr 18, 2006 at 03:17:15PM +0530, Irfan J Sayed wrote: > > my $cp = dircopy("D:\\vobs","D:\\backup"); > if ($cp == 0) > { > print " Copied successfuly\n"; > } > else > { > print " Copying failed\n"; > } > > But in variable $cp proper value is not coming .Either it should come as 0 > or1 but it's coming as any junk value or no. > > can anybody plz tell me what i am doing wrong
Well . . . The first thing I noticed is that your email subject doesn't give me any clue what the email is about before I open it. You might have used a subject that was more descriptive, such as "return value not what I expected". The second thing I noticed you've done wrong is not letting us know what you've done to try to research the problem yourself. The third thing I noticed is that you haven't given enough information for me to be able to answer the question for you. Are you using dircopy() from File::Copy::Recursive or something you defined yourself or something else entirely? -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "The ability to quote is a serviceable substitute for wit." - W. Somerset Maugham -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>