Re: perl version

2001-08-23 Thread N_Dinesh
Hi, Useperl -v dinesh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: newbie : how to find the latest file in a directory

2001-10-29 Thread N_Dinesh
Hi, Bothered to a code for you check this out. #!/usr/bin/perl use integer; #Keep a default setting to start off with $str=100; $sfile=""; foreach $i (`ls`) { chop($i); if(-f $i) { # change this for including directories also if (-A $i < $str) { $str = -A $i; $sfile=$i; }; } } print "$sfile

Re: problem in the #/usr/local/bin line

2001-11-19 Thread N_Dinesh
Hi, Check MS documentation, on how to configure ".pl" cgi scripts in PWS. That is all you require to do, if you want to run perl cgi scripts. You dont require to mention #!/usr/bin/perl line in perl cgi scripts in windows, -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: Outputing data for Excel / PDF

2001-11-27 Thread N_Dinesh
Hi, Please check www.activestate.com, they have a windows Perl Port which has OLE support. N.Dinesh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Reading files into arrays

2001-11-30 Thread N_Dinesh
Hi, Try out this code, #!/usr/bin/perl @lines; $array_counter=0; open(fd, "file.txt"); $line=; while($line) { if($line =~ /\>gi\|[\d+]/) { $line=; @lines[$array_counter++]=$line; } $line=; } print @lines; close(fd); Assume file.txt is the file out here. And @lines wil

Re: Does Perl have an equivalent of C's #include

2001-12-05 Thread N_Dinesh
Yeah. Use ->is the directive to include packages ! like ex:- Use Net::CMD; N.,dinesh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to detect the correct OS:

2002-01-15 Thread N_Dinesh
Hi,         The  command  "Uname -a" will tell you the OS name and the version you can cal this from your perl script. Dinesh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]