Is there something like cscope for large Perl applications ?

2003-03-21 Thread Vinay T.S.
Hello, would like to know if there is a utility to build up a function dependancy database, while handling large Perl applications just like cscope does for C programs . Thanks Vinay Office :91-80-5318090 Xtn :6066 Cell :91-98451-91236 e-page : [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EM

Re: calculating length of a number

2003-03-21 Thread John W. Krahn
Gufranul Haque wrote: > > Hello all, Hello, > I have a series of numbers 20.45,-2.00,45.450,-30.390 > > 20.45 - length is 5 > -2.00 - length is 4 Why aren't you including the leading minus sign as part of the length? > I need to calculate the length of each number for formatting purposes. >

Re: spaceship operator <=> question

2003-03-21 Thread R. Joseph Newton
"SHAKARIAN,SERGE (HP-NewJersey,ex1)" wrote: > Hello, > > I think I understand the <=> operator, it returns -1 if left operand is less > then right, 0 if equal and +1 if left is greater then right. What I dont > understand is why this works: > > @list = sort { $a<=>$b } ( @list ); # lowest to highe

RE: extracting numbers from a string

2003-03-21 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Matthew Stapleton wrote: > Hello, > > I am learning Perl and having some fun with it. In a script I am > writing I am wanting to read a line of a file and then extract a > digit from the beginning of the line. A typical line looks something > like this: > > 100. text text text > > So I am usi

Re: Sending attachements with perl through SMTP AUTH.

2003-03-21 Thread R. Joseph Newton
Thomas Williams wrote: > Thank you all for your help, but it's my fault for forgetting a major piece > of information. > > Not only do I need to send a email with an attachment, through perl, but it > needs to be through a smtp server that required the username and password > sent, before it will

Re: Sending attachements with perl through SMTP AUTH.

2003-03-21 Thread R. Joseph Newton
Thomas Williams wrote: > Thank you all for your help, but it's my fault for forgetting a major piece > of information. > > Not only do I need to send a email with an attachment, through perl, but it > needs to be through a smtp server that required the username and password > sent, before it will

extracting numbers from a string

2003-03-21 Thread Matthew Stapleton
Hello, I am learning Perl and having some fun with it. In a script I am writing I am wanting to read a line of a file and then extract a digit from the beginning of the line. A typical line looks something like this: 100. text text text So I am using a file handle to open the file and read the

Re: spaceship operator <=> question

2003-03-21 Thread Rob Dixon
Serge Shakarian wrote: > > is there a way for the compare operator to return the higher or lower > operand? Just in case you were looking for a max() operator, you can do this: my $max = ($a > $b ? $a : $b); much like in C. Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Hanging '(' in Net::Telnet ?

2003-03-21 Thread R. Joseph Newton
Jeff Westman wrote: > print "Executing 'date'\n"; > @result = $t->cmd("date"); > foreach (@result) { >print; > } > $t->close && print "Connection closed\n"; > <> > So.. what's with the '(' in $result[1] ??? I know I can filter this > out ... b

Re: calculating length of a number

2003-03-21 Thread Rob Dixon
Hi. I think you have two separate problems here, right? Gufranul Haque wrote: > Hello all, > > I have a series of numbers 20.45,-2.00,45.450,-30.390 > > 20.45 - length is 5 > -2.00 - length is 4 > > I need to calculate the length of each number for formatting purposes. FIrst you need to decide h

RE: spaceship operator <=> question

2003-03-21 Thread SHAKARIAN,SERGE (HP-NewJersey,ex1)
thank you, that clears it up for me. Serge -Original Message- From: Hanson, Rob [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 6:49 PM To: 'SHAKARIAN,SERGE (HP-NewJersey,ex1)'; [EMAIL PROTECTED] Subject: RE: spaceship operator <=> question > is there a way for the compare operato

RE: spaceship operator <=> question

2003-03-21 Thread Hanson, Rob
> is there a way for the compare operator to > return the higher or lower operand? No, that is not what it does. > @list = sort { $a<=>$b } ( @list ); > I dont understand is why this works: I'm not sure how much you know, so forgive me if I give you info on what you already understand. A sort a

spaceship operator <=> question

2003-03-21 Thread SHAKARIAN,SERGE (HP-NewJersey,ex1)
Hello, I think I understand the <=> operator, it returns -1 if left operand is less then right, 0 if equal and +1 if left is greater then right. What I dont understand is why this works: @list = sort { $a<=>$b } ( @list ); # lowest to highest if $a and $b are reversed highest to lowest is the

RE: calculating length of a number

2003-03-21 Thread David Olbersen
> The issue here is that say I have a number -20.00 (length > 6). Now I have to split this number into two numbers using a split ratio > say 0.1. > > So now I have two numbers to print -2.00 and -20.00. Now both > these numbers should be printed in six charcters i.e s-2.00 and > -20.00 (s de

Fw: calculating length of a number

2003-03-21 Thread Gufranul Haque
- Original Message - From: "Gufranul Haque" <[EMAIL PROTECTED]> To: "David Olbersen" <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 3:12 PM Subject: Re: calculating length of a number > > > > Hello all, > > > > I have a series of numbers 20.45,-2.00,45.450,-30.390 > > > > 20.45 - length

Re: Help! Telnet-->FTP

2003-03-21 Thread Mark G
you can also write your own telnet client that can establish FTP sessions on the fly. In perl it would be simple, I wrote a pritty nice FTP server in about a day or so. Mark - Original Message - From: "Jeff Westman" <[EMAIL PROTECTED]> To: "beginners" <[EMAIL PROTECTED]> Sent: Friday, Mar

RE: calculating length of a number

2003-03-21 Thread David Olbersen
Gufranul, Why not just use sprintf()? That should be much easier than doing it yourself. perldoc -f sprintf -- David Olbersen iGuard Engineer 11415 West Bernardo Court San Diego, CA 92127 1-858-676-2277 x2152 > -Original Message- > From: Gufranul Haque [mailt

calculating length of a number

2003-03-21 Thread Gufranul Haque
Hello all, I have a series of numbers 20.45,-2.00,45.450,-30.390 20.45 - length is 5 -2.00 - length is 4 I need to calculate the length of each number for formatting purposes. I am trying to split the each number into an array of charcters and then calculating the length of the array my @digi

Re: Moving View of Months

2003-03-21 Thread John W. Krahn
Kevin Old wrote: > > Hello everyone, Hello, > I'm trying to create an array of months that will be a continuous > "Moving View of Months". I will have an page served to users that has a > table of the past 12 months. For instance, if I were to pull up the > page today, it would display Apr 02

RE: encdypt/decrypt files

2003-03-21 Thread Dan Muey
> Dan Muey wrote: > > Hello list, > > > > I am looking into being able to encrypt, symetrically, a > file, text, > > images, hopefully basically any type of file binary or > ascii and save > > it to disc. > > > > then I need to be able to unencypt it to view it. > > I've looked into the Dige

RE: encdypt/decrypt files

2003-03-21 Thread Bob Showalter
Dan Muey wrote: > Hello list, > > I am looking into being able to encrypt, symetrically, a file, text, > images, hopefully basically any type of file binary or ascii and save > it to disc. > > then I need to be able to unencypt it to view it. > I've looked into the Digest::MD5 and Crypt::Blowfis

Re: Moving View of Months

2003-03-21 Thread david
Kevin Old wrote: > Hello everyone, > > I'm trying to create an array of months that will be a continuous > "Moving View of Months". I will have an page served to users that has a > table of the past 12 months. For instance, if I were to pull up the > page today, it would display Apr 02 - Mar 03

RE: Moving View of Months

2003-03-21 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Wagner, David --- Senior Programmer Analyst --- WGO wrote: > Kevin Old wrote: >> Hello everyone, >> >> I'm trying to create an array of months that will be a continuous >> "Moving View of Months". I will have an page served to users that >> has a table of the past 12 months. For instance, if I w

RE: Help! Telnet-->FTP

2003-03-21 Thread Jeff Westman
Seems such a shame to have to call perl from the command line or (last resort), run FTP using the shell. Your explanation makes sense. What a pain! --- [EMAIL PROTECTED] wrote: > > > On Fri, 21 Mar 2003 12:29:06 -0800 (PST), Jeff Westman <[EMAIL

Re: Unix ls -lrt | tail -1 in Perl

2003-03-21 Thread John W. Krahn
Sudarshan Raghavan wrote: > > On Fri, 21 Mar 2003, NYIMI Jose (BMB) wrote: > > > > From: Palmer Greg [mailto:[EMAIL PROTECTED] > > > > > > $filename = `ls -ltr|tail -1 $DIRECTORY`; > > > print $filename; > > > > Sorry, i didn't mentioned that i wanted a pure perl solution, thanks anyway. > > > >

RE: Help! Telnet-->FTP

2003-03-21 Thread wiggins
On Fri, 21 Mar 2003 12:29:06 -0800 (PST), Jeff Westman <[EMAIL PROTECTED]> wrote: > I need help! > > I am connecting to a remote server using Net::Telnet. I am then running some > programs, which works fine. Now I need to send the results back t

Help! Telnet-->FTP

2003-03-21 Thread Jeff Westman
I need help! I am connecting to a remote server using Net::Telnet. I am then running some programs, which works fine. Now I need to send the results back to the local server that established the connection. #- start $t = new Net::Telnet (Input_Log => "__debug_log" ); ... print "Attempting

RE: Help w/ script to insert text

2003-03-21 Thread William Voyek
Thanks. This worked perfectly. William -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 11:58 To: [EMAIL PROTECTED] Subject: Re: Help w/ script to insert text David --- Senior Programmer Analyst --- Wgo Wagner wrote: > > scanner. So, the text I

Re: Help w/ script to insert text

2003-03-21 Thread Rob Dixon
David --- Senior Programmer Analyst --- Wgo Wagner wrote: > > scanner. So, the text I need inserted is: > > > > > /usr/local/bin/odeiavir -r [EMAIL PROTECTED] > > > Try adding \ as [EMAIL PROTECTED] This escapes those characters > otherwise it tries to expand $EXT and possibly @$HOST. With the >

beginners@perl.org

2003-03-21 Thread Steve Grazzini
Andy Anderson <[EMAIL PROTECTED]> wrote: > I would say that this is because the "operand" && is "ANDING" > the numbers. Therefore the response the the line print 1 && > 1 && 0; would be a 0. Since the line is a "mathematical string" > it is performed left to right (1 && 1 = 1, 1 && 0 = 0). I'm

Re: Sending attachements with perl!

2003-03-21 Thread Steve Maroney
I have used Mime::Lite as well. I would suggest this too. Thank you, Steve Maroney On Fri, 21 Mar 2003, Jenda Krynicky wrote: > From: "Thomas Williams" <[EMAIL PROTECTED]> > > Right now I am using sendmail in the following way: > > > > open (MAIL, "|/usr/sbin/sendmail -t") || return 0; > > > >

Sending attachements with perl through SMTP AUTH.

2003-03-21 Thread Thomas Williams
Thank you all for your help, but it's my fault for forgetting a major piece of information. Not only do I need to send a email with an attachment, through perl, but it needs to be through a smtp server that required the username and password sent, before it will allow me to send anything. It w

.qmail exit codes and perl

2003-03-21 Thread Dan Muey
Hello, I'm trying to use exit codes form a perl script in a .qmail file. Here's what I have :: man qmail-control ... command's exit codes are interpreted as follows: 0 means that the delivery was successful; 99 means that the deliv- ery was successful, but that qmail-local should

RE: Sending attachements with perl!

2003-03-21 Thread Bakken, Luke
> Right now I am using sendmail in the following way: > > open (MAIL, "|/usr/sbin/sendmail -t") || return 0; > > But, I would like to send attachments, what is the best way > of doing this? I had to do this just yesterday. Here's what I found: http://perl.about.com/library/weekly/aa042302a.htm

RE: Help w/ script to insert text

2003-03-21 Thread Wagner, David --- Senior Programmer Analyst --- WGO
William Voyek wrote: > Hi all, > > First of all I'm not a programmer and am completely new perl so please > be gentle with me. My problem is that I'm trying to use the script > below to insert some text into multiple files. The files are control > files for qmail, the MTA we use. The text that I

RE: encdypt/decrypt files

2003-03-21 Thread Dan Muey
Thanks for the input I'll use that a lot and let you know how it goes if it ever gets to go at all!! Thanks, Dan > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, March 21, 2003 12:26 PM > To: Dan Muey; [EMAIL PROTECTED] > Subject: RE: encdypt/dec

Help w/ script to insert text

2003-03-21 Thread William Voyek
Hi all, First of all I'm not a programmer and am completely new perl so please be gentle with me. My problem is that I'm trying to use the script below to insert some text into multiple files. The files are control files for qmail, the MTA we use. The text that I want to insert will call a virus

RE: Sending attachements with perl!

2003-03-21 Thread wiggins
On Fri, 21 Mar 2003 17:41:40 +, "Thomas Williams" <[EMAIL PROTECTED]> wrote: > Right now I am using sendmail in the following way: > > open (MAIL, "|/usr/sbin/sendmail -t") || return 0; > > But, I would like to send attachments, what is the b

RE: encdypt/decrypt files

2003-03-21 Thread wiggins
On Fri, 21 Mar 2003 10:54:12 -0600, "Dan Muey" <[EMAIL PROTECTED]> wrote: > Hello list, > > I am looking into being able to encrypt, symetrically, a file, text, images, > hopefully > basically any type of file binary or ascii and save it to disc

Re: Multi-OS script

2003-03-21 Thread beau
On 20 Mar 2003 at 16:45, Steve Grazzini wrote: > [EMAIL PROTECTED] wrote: > > > > My problem is that I would like to have only > > one script (to simplify maintanence and deployment) > > for all OSs. So, for example, for Win32 machines > > I may need Win32::API and Win32::DriveInfo; if I > > use

RE: Run System Command against every line in a specific file

2003-03-21 Thread David Olbersen
JB, You could definitely do this with Perl, but I suggest a shell script instead. If you use bash, and you probably do, the following would work provided you have each domain on it's own line in a file named domains.txt: for dom in `cat domains.txt` ; do /var/qmail/vpopmail/bin/vdeldomain $

RE: Moving View of Months

2003-03-21 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Kevin Old wrote: > Hello everyone, > > I'm trying to create an array of months that will be a continuous > "Moving View of Months". I will have an page served to users that > has a table of the past 12 months. For instance, if I were to pull > up the page today, it would display Apr 02 - Mar 03.

Run System Command against every line in a specific file

2003-03-21 Thread John B
Hello All, Any help on this topic would be greatly appreciated. Here's the situation. I have a mailserver that I'm cleaning up running qmail/vpopmail. What I'm doing is deleting all dead domains on that mailserver. The system command for this would be: /var/qmail/vpopmail/bin/vdeldomain hostn

Re: Sending attachements with perl!

2003-03-21 Thread Jenda Krynicky
From: "Thomas Williams" <[EMAIL PROTECTED]> > Right now I am using sendmail in the following way: > > open (MAIL, "|/usr/sbin/sendmail -t") || return 0; > > But, I would like to send attachments, what is the best way of doing > this? The best way is to use some module :-) Try MIME::Lite and Mai

RE: Sending attachements with perl!

2003-03-21 Thread David Olbersen
Look at the Mail::Sendmail module. This will do more than you could ever want...well...maybe. Anyway, Tom, it'll send attachments. -- David Olbersen iGuard Engineer 11415 West Bernardo Court San Diego, CA 92127 1-858-676-2277 x2152 > -Original Message- > From

Sending attachements with perl!

2003-03-21 Thread Thomas Williams
Right now I am using sendmail in the following way: open (MAIL, "|/usr/sbin/sendmail -t") || return 0; But, I would like to send attachments, what is the best way of doing this? Tom _ MSN 8 helps eliminate e-mail viruses. Get 2 mon

Moving View of Months

2003-03-21 Thread Kevin Old
Hello everyone, I'm trying to create an array of months that will be a continuous "Moving View of Months". I will have an page served to users that has a table of the past 12 months. For instance, if I were to pull up the page today, it would display Apr 02 - Mar 03. Next month it will be May 0

encdypt/decrypt files

2003-03-21 Thread Dan Muey
Hello list, I am looking into being able to encrypt, symetrically, a file, text, images, hopefully basically any type of file binary or ascii and save it to disc. then I need to be able to unencypt it to view it. I've looked into the Digest::MD5 and Crypt::Blowfish modules a bit. Ok so here's m

Hanging '(' in Net::Telnet ?

2003-03-21 Thread Jeff Westman
Seems whenever I issue a command to Net::Telnet, I get a left-paren '(' in the result set. Consider the following from a debug session: <> ... print "Executing 'date'\n"; @result = $t->cmd("date"); foreach (@result) { print; } $t->close && print "Connect

Re: how to upload image in perl

2003-03-21 Thread R. Joseph Newton
Dave wrote: > Hai , > > I have a problem uploading images with perl. I have HTML code within perl. When i > just link the image useing the link tag > Servers do not use images. They store them as files, and serve them as such. The proper means for uploading a file to your perl script, within

beginners@perl.org

2003-03-21 Thread R. Joseph Newton
Andy Anderson wrote: > I would say that this is because the "operand" && is "ANDING" the numbers. > Therefore the response the the line print 1 && 1 && 0; would be a 0. Since the > line is a "mathematical string" it is performed left to right (1 && 1 = 1, 1 && > 0 = 0). > > Hope this helps. > > Ha

Re: showing directories and subdirectories.

2003-03-21 Thread Stefan Lidman
use strict; use warnings; > > sub GetDirList { > > > > opendir (D_LIST, $_[0]) or die "Could not open directory $_[0]"; > > while ( defined ($vf = readdir D_LIST) ) { > >next if $gf =~ /^\.\.?$/; # skip . and .. > >if (-d "$_[0]/$vf") { > > $file_list .= "$_[0]"; > > $z="$_[0]/

RE: showing directories and subdirectories.

2003-03-21 Thread Bakken, Luke
> > sub GetDirList { > > > > opendir (D_LIST, $_[0]) or die "Could not open directory $_[0]"; > > while ( defined ($vf = readdir D_LIST) ) { > >next if $gf =~ /^\.\.?$/; # skip . and .. > >if (-d "$_[0]/$vf") { > > $file_list .= "$_[0]"; > > $z="$_[0]/$vf"; > > GetDirList($z

Re: Urgent: How do I find real file instead of link

2003-03-21 Thread David T-G
David, et al -- ...and then david said... % % Ohad Ohad wrote: % ... % > This means also if I have a linked list of links I want to get the real % > file at the end. Ohad, do you want to know where the link (chain) points or do you want to get the data that's in the target file? ... % % for(

Re: showing directories and subdirectories.

2003-03-21 Thread R. Joseph Newton
Christopher M Burger wrote: > Hello, > > I was wondering if anyone had any ideas on how I can get a list of > directories and subdirectories. > > I'm currently trying something like this: > > sub GetDirList { > > opendir (D_LIST, $_[0]) or die "Could not open directory $_[0]"; > while ( define

RE: how to upload image in perl

2003-03-21 Thread Dan Muey
> Hai , > > I have a problem uploading images with perl. I have HTML code > within perl. When i just link the image useing the link tag > > That's just an html problem with a broken link. If you give the list what you're using perl to do and what you've tried Then we may be able to help bette

beginners@perl.org

2003-03-21 Thread Rob Dixon
Jeff Westman wrote: > Basic question on using '&&' vs 'and'. I see that '&&' has higher > precedence than 'and', but why does > > print 1 && 1 && 0; > print "\n"; > print 1 and 1 and 0; > print "\n"; > > return > 0 > 1 > > I would have expected both statements to return 0. Hi Jeff. '

RE: Reporting with HTML forms in Perl

2003-03-21 Thread Dan Muey
> I am trying to find a module that will make it easier to > embed scalar data in HTML for reporting purposes. So far I > have looked at HTML::Template but that seems more for CGI > related operations. > > I just want to be able to generate a report and then email it > to a distribution list.

Re: Environment variables

2003-03-21 Thread Todd W
"Ankit Gupta" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I want to print some linux environment variables that have already been set. > Could some one let me know which command I can use to get value of > environment variables. > heres a 1-liner that works: perl -e 'pri

Re: showing directories and subdirectories.

2003-03-21 Thread Sudarshan Raghavan
On Thu, 20 Mar 2003, Christopher M Burger wrote: > Hello, > > I was wondering if anyone had any ideas on how I can get a list of > directories and subdirectories. Take a look at File::Find, comes with the standard distribution perldoc File::Find > > I'm currently trying something like this: >

RE: Linux Environment Variable

2003-03-21 Thread yargo
my ($K, $V); while (($K,$V) = each %ENV) { print "Key - $K\nVAL - $V\n\n"; } -Original Message- From: Ankit Gupta [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 3:23 PM To: [EMAIL PROTECTED] Subject: Linux Environment Variable Hi, I want to print some linux environment

Re: Linux Environment Variable

2003-03-21 Thread Sudarshan Raghavan
On Thu, 20 Mar 2003, Ankit Gupta wrote: > Hi, > > I want to print some linux environment variables that have already been set. > Could some one let me know which command I can use to get value of > environment variables. Environment variables are available through the %ENV hash. For e.g. to get

Re: networking with perl

2003-03-21 Thread Soumyadeep nandi
Hi Wiggins, Thankyou very much for your suggestion and guideline. I would inform you on my progress. With best of my regards Soumyadeep --- Wiggins d'Anconia <[EMAIL PROTECTED]> wrote: > Soumyadeep nandi wrote: > > Hi All, > > > So, I have two plans to work out the situation, > these > > are a

Environment variables

2003-03-21 Thread Ankit Gupta
Hi, I want to print some linux environment variables that have already been set. Could some one let me know which command I can use to get value of environment variables. Regards, Ankit -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

showing directories and subdirectories.

2003-03-21 Thread Christopher M Burger
Hello, I was wondering if anyone had any ideas on how I can get a list of directories and subdirectories. I'm currently trying something like this: sub GetDirList { opendir (D_LIST, $_[0]) or die "Could not open directory $_[0]"; while ( defined ($vf = readdir D_LIST) ) { next if $gf =~

Reporting with HTML forms in Perl

2003-03-21 Thread Paul Harwood
I am trying to find a module that will make it easier to embed scalar data in HTML for reporting purposes. So far I have looked at HTML::Template but that seems more for CGI related operations. I just want to be able to generate a report and then email it to a distribution list. I want the report

Re: Multi-OS script

2003-03-21 Thread Steve Grazzini
[EMAIL PROTECTED] wrote: > > My problem is that I would like to have only > one script (to simplify maintanence and deployment) > for all OSs. So, for example, for Win32 machines > I may need Win32::API and Win32::DriveInfo; if I > use this contstruct: > > ... > if ($^O eq 'MSWin32') { >

Linux Environment Variable

2003-03-21 Thread Ankit Gupta
Hi, I want to print some linux environment variables that have already been set. Could some one let me know which command I can use to get value of environment variables. Regards, Ankit -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Urgent: How do I find real file instead of link

2003-03-21 Thread Steve Grazzini
Ohad Ohad <[EMAIL PROTECTED]> wrote: > Thought it was obvious, but I guess not . . . > > What I want is : > I have a symbolic link (to file - Unix), and I want to get the > real file it is pointing to. > Cwd::abs_path will resolve symlinks. -- Steve perldoc -qa.j | perl -lpe '($_)=m("(.*)")

beginners@perl.org

2003-03-21 Thread Andy Anderson
I would say that this is because the "operand" && is "ANDING" the numbers. Therefore the response the the line print 1 && 1 && 0; would be a 0. Since the line is a "mathematical string" it is performed left to right (1 && 1 = 1, 1 && 0 = 0). Hope this helps. Have a great day; Andy Mark Anderson

RE: Unix ls -lrt | tail -1 in Perl

2003-03-21 Thread Sudarshan Raghavan
On Fri, 21 Mar 2003, NYIMI Jose (BMB) wrote: > > -Original Message- > > From: Palmer Greg [mailto:[EMAIL PROTECTED] > > Sent: Thursday, March 20, 2003 4:50 PM > > To: NYIMI Jose (BMB) > > Subject: RE: Unix ls -lrt | tail -1 in Perl > > > > > > $filename = `ls -ltr|tail -1 $DIRECTORY`; >

RE: Unix ls -lrt | tail -1 in Perl

2003-03-21 Thread NYIMI Jose (BMB)
> -Original Message- > From: Palmer Greg [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 20, 2003 4:50 PM > To: NYIMI Jose (BMB) > Subject: RE: Unix ls -lrt | tail -1 in Perl > > > $filename = `ls -ltr|tail -1 $DIRECTORY`; > print $filename; Sorry, i didn't mentioned that i wanted a p