copy ffiles and directories recursively

2008-04-01 Thread alok nath
Hi, I wanted to recursively copy the contents of a directory(both directory and files) from one folder to the other. The below code does only copy of directories but leaves behind files. Can anybody help me how to do that ? Regards, Alok #!/usr/bin/perl $startDir = q{c:\test};

Re: copy ffiles and directories recursively

2008-04-01 Thread alok nath
($dir.\\.$dirs[$list]); } return 1; } Can somebody point how to fix this ? Regards, Alok. John W. Krahn [EMAIL PROTECTED] wrote: alok nath wrote: Hi, Hello, I wanted to recursively copy the contents of a directory(both directory and files) from one folder

matching and parsing commands

2007-11-15 Thread alok nath
Hi, I have list of commands that needs to be called.I am calling the commands in through multiple scripts.The number of commands are quite large and some commands have multiple options and parameters. I wanted to verify now whether my scripts covers all the commands and its

Re: problem connecting to mysql database

2007-08-16 Thread alok nath
needs the libraries here to work, they must also be in you paths (LD_LIBRARY_PATH, PATH) -Original Message- From: Jeff Pang [mailto:[EMAIL PROTECTED] Sent: 16 August 2007 08:53 To: beginners@perl.org Subject: Re: problem connecting to mysql database -Original Message- From: alok

problem connecting to mysql database

2007-08-15 Thread alok nath
Hi, This is the first time I am trying to use DBI module. When I try to connect to mysql db, I get the below error. Error : Uncaught exception from user code: install_driver(mysql) failed: Can't locate loadable object for

Re: parsing a line

2007-07-01 Thread alok nath
= exists $rec{DirAbsolute} ? $rec{DirAbsolute} : not set; my $desc = exists $rec{'Test Description'} ? $rec{'Test Description'} : not set; print id $id dir $dir desc $desc\n; } - Original Message From: Chas Owens [EMAIL PROTECTED] To: alok nath [EMAIL PROTECTED] Cc

Re: processing XL using Win32::OLE

2007-06-29 Thread alok nath
Found a good tutorial here : http://www.perlmonks.org/?node=153486 - Original Message From: alok nath [EMAIL PROTECTED] To: beginners@perl.org Sent: Friday, June 29, 2007 10:42:56 AM Subject: processing XL using Win32::OLE Hi, Can anybody tell how to open an already existing xL file

problem printing contents of file in directory

2007-06-28 Thread alok nath
Hi, Can anybody tell me why its not printing the contents of each inside a particular folder ? I lost all my hairs scratching my head. Thanks Alok. my $tstToRunDir = C:\\perlScripts ; my $fileInTstToRunDir ; opendir TST2RUN, $tstToRunDir || die Failed to open $tstToRunDir $!\n ; open

parsing a line

2007-06-28 Thread alok nath
Hi, I am parsing a file which has lines like this. Test Description = Test 1 ID = ID A1 DirAbsolute = C:/perl/ Got stuck up while trying to extract values of fields called Description, ID ? Pls help. Thanks Alok.

Re: parsing a line

2007-06-28 Thread alok nath
Hi, So I tried something like this .It works ! if( $_ =~ m/ID\s=\s(.*?)\sDirAbsolute/){ print Test ID is $1 \n ; }else{ print FAILED to locate Test ID \n ; } May be its crude way. Thanks Alok. - Original Message From: Chas Owens [EMAIL PROTECTED] To: alok nath

processing XL using Win32::OLE

2007-06-28 Thread alok nath
Hi, Can anybody tell how to open an already existing xL file and then probabaly do some processing using Win32::OLE I found quite a few examples but none of them open an existing excel file. Or is there some better module for XL processing ? Here is my code .. use strict ; use warnings ;