regarding win32 functions

2001-09-18 Thread jaya kumaran

Hi,

  i have used

  use win32::process() statement

  This statement is used only for NT ie using if statement. In NT, this is used to 
kill a process. But when the same code is taken to UNIX, it is giving compilation 
error. Ie, its searching for Wind32 libraries in UNIX which is not existing. How to 
resolve this problem??

  Is there a facility in perl to have preprocessor statement.

Thanks,
Jaya 
-- 

___
Get your free email from http://www.indiya.com


Powered by Outblaze

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: to remove the file extension (fwd)

2001-09-13 Thread jaya kumaran


Hi,

 I found the solution... Thanks

--
opendir (DIR_NAME, ".");
@fnames = readdir (DIR_NAME);
closedir(DIR_NAME);

foreach $file (@fnames)
{
 if ($file =~ /\.c$/)
  {
  $datfname=$`;
  print "$datfname\n";
   stat($outfname);

 if( -e $outfname)
 {
print "$outfname exists\n";
 }
else
  {
  print "$outfname doesn't exists\n";
  }
}
}
-   
Thanks,
jaya  


Regards,
Jaya 


> Date: Thu, 13 Sep 2001 17:18:14 +0800
> From: jaya kumaran <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: to remove the file extension
> 
> 
> hi,
> 
>   In a directory there exist *.c and *.out files. Here *.out is created for every 
>*.c file. I need to check whether .out is generated for all the .c file.
> How to achive this.
> 
> Thanks in advance,
> Jaya
> -- 
> 
> ___
> Get your free email from http://www.indiya.com
> 
> 
> Powered by Outblaze
> 
> 

-- 

___
Get your free email from http://www.indiya.com


Powered by Outblaze

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




to remove the file extension

2001-09-13 Thread jaya kumaran


hi,

  In a directory there exist *.c and *.out files. Here *.out is created for every *.c 
file. I need to check whether .out is generated for all the .c file.
How to achive this.

Thanks in advance,
Jaya
-- 

___
Get your free email from http://www.indiya.com


Powered by Outblaze

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




To kill an application

2001-07-04 Thread jaya kumaran


Hi,
  I need to kill a process if it has exceeded the allocated time eg,2 seconds.
  In windows, i'm able to kill the application using the  
   Win32::Proces

 how to achieve this in unix? or else is there a common
function available to kill the application. 
   perlport docs doesn't seem to provide any information on this.

Thanks in advance,
jayak


_
Get Free Fast Easy email from indiya.com: SIGNUP NOW : http://www.indiya.com



Input redirection

2001-06-28 Thread jaya kumaran



Hi,

  I need the o/p of 
 perl -v 
   to be redirected to a file test.txt

  open(FILEHANDLE,"> test.txt") || die can't open the file";
print FILEHANDLE perl -v ;

one executing this , I get the following error

Unrecognized file test: -v at D:\test\perl\TEST1.PL line 6.

How to write the o/p of 'perl -v' in the file(test.txt).

Thanks in advance,
jaya

_
Get Free Fast Easy email from indiya.com: SIGNUP NOW : http://www.indiya.com



Clear screen

2001-06-27 Thread jaya kumaran


Hi all,

   I used this instruction to clear the screen on NT
   
   system(cls);
   print "Hello";
  
  the same instruction is not working on unix. I modified the instruction to

  system(clear);
  print "hello";

This works fine on unix. Is there any instruction in perl to perfom clear screen and 
it works on both windows and Unix 

Thanks in advance,
jaya K.

_
Get Free Fast Easy email from indiya.com: SIGNUP NOW : http://www.indiya.com



Perl programming

2001-06-22 Thread jaya kumaran


Hi all,

   Is perl progamming on windows is different from unix.
   Will i be able to run the perl script on both window and unix without any 
modification??


Thanks in advance,
jaya k

_
Get Free Fast Easy email from indiya.com: SIGNUP NOW : http://www.indiya.com



Online books

2001-06-22 Thread jaya kumaran


Hi,
  Is there any free online books availabe to learn 
  perl script?

Thanks,
Jaya K.

_
Get Free Fast Easy email from indiya.com: SIGNUP NOW : http://www.indiya.com