Re: copy ffiles and directories recursively

2008-04-01 Thread alok nath
ot;.$dirs[$list],"\n"; mkdir ($ndir."\\".$dirs[$list]); &myReadDir($dir."\\".$dirs[$list]); } return 1; } Can somebody point how to fix this ? Regards, Alok. "John W. Krahn" <[EMAIL PROTECTED]> wro

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}; $newDi

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 availabl

Re: problem connecting to mysql database

2007-08-16 Thread alok nath
e- >From: alok nath <[EMAIL PROTECTED]> >Sent: Aug 16, 2007 1:25 PM >To: beginners@perl.org >Subject: problem connecting to mysql database > I have installed the mysql.pm, by doing the following : > - downloaded the DBD-mysql-4.005.tar and copied the contents of lib to >

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 mo

Re: parsing a line

2007-07-01 Thread alok nath
et"; my $dir = 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 M

Re: processing XL using Win32::OLE

2007-06-28 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 x

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 ; us

Re: parsing a line

2007-06-28 Thread alok nath
s <[EMAIL PROTECTED]> To: alok nath <[EMAIL PROTECTED]> Cc: beginners@perl.org Sent: Thursday, June 28, 2007 6:38:09 PM Subject: Re: parsing a line On 6/28/07, alok nath <[EMAIL PROTECTED]> wrote: > Hi, > I am parsing a file which has lines like this. > >

parsing a line

2007-06-28 Thread alok nath
Hi, I am parsing a file which has lines like this. Got stuck up while trying to extract values of fields called Description, ID ? Pls help. Thanks Alok. Shape Yahoo! in your own image. Join ou

problem printing contents of file in directory

2007-06-27 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 RESULTS_