Help on subctitution s///

2001-06-07 Thread Saxena, Saurabh
I have a XML file which looks like "... Saurabh .." I want to remove the whitespace in the TAG value. I am using while (<>) { s/\s*<\/NAME>/<\/NAME>/; -->This will replace the with print 4_; } On the console it is showing the value as "... Saurabh .."

(no subject)

2001-06-07 Thread Saxena, Saurabh
read print 4_ as print $_ in my previous mail regards Saurabh ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Getting full path from SYSTEM % PATH%

2001-06-08 Thread Saxena, Saurabh
Hi Is it possible in perl to get the loaction of some ecexutable from the PATH , For example if the system path has PATH= E:/Perl/bin Is it possible to read it using perl regards Saurabh ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://list

RE: Getting full path from SYSTEM % PATH%

2001-06-08 Thread Saxena, Saurabh
Hi I think $ENV{"PATH"} should work but it is giving the full string as stored the the System PATH variable.Is it posible to get the path for a particular executable directly regards saurabh Hi Is it possible in perl to get the loaction of some ecexutable from the PATH , For example if the sys

RE: Question about how Win32::Process works

2001-06-20 Thread Saxena, Saurabh
Hi Is it possible to use the Win32::Process ::Create function without giving the full path of the exe("C:\\perl\\bin\\Perl5.6.0.exe") like Win32::Process::Create($run_primary, 'C:\\perl\\bin\\Perl5.6.0.exe', "perl run_primary_aa.pl", 0,CREATE_NEW_CONSOLE, "."); Since the exe path is already pre

Time till millisecond

2001-06-28 Thread Saxena, Saurabh
Hi Is there any method in perl to get the time in form of "HHmmSSmil" ie hour/min/sec/millisecond regards saurabh ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

RE: Time till millisecond

2001-06-28 Thread Saxena, Saurabh
-Original Message- From: Saxena, Saurabh Sent: Thursday, June 28, 2001 8:47 PM To: '[EMAIL PROTECTED]' Subject: RE: Time till millisecond Thanks Geoff I have one problem.Actually in my code i am also using "use Time::localtime" so when i am using this it is n

String Reading

2001-07-05 Thread Saxena, Saurabh
Hi I have one configuration file which has a variable as ACCOUNT = 0 # Put 0 for Acct.A,1 for AcctB and 2 for AcctC # Multiple values can be mentioned as 0,1 or 0,1,2 How should i read this file so that i can get the information as Let in conf file it is mentione

Case Sensitive

2002-04-24 Thread Saxena, Saurabh
Hi I am trying to get all the files present in a directory using my $filename="*.txt"; my @file_list = ""; until (@file_list = $g2_ftp_obj->ls($filename)) (Using FTP object) But this is listing only file that are "*.txt" not that are "*.TXT". Is there any way to m

GREP function

2002-04-25 Thread Saxena, Saurabh
Hi I have a file list like following my @file_list=("a1.exe","a2.exe","a3.invalid_exe"); I want to store only the names that has extension as ".exe" and remove the others.I am using my $filename=".exe"; @file_list = grep /\$filename$/i, @file_list;