Re: Read a text file starting from the bottom

2007-01-14 Thread John W. Krahn
Michael Alipio wrote: > Hi, Hello, > I wanted to extract the start time of a particular logfile (located at the > beginning of the file, and also the end time which is located at the end > of the logfile. > > Is there any way to do this in perl without using "head" or "tail" commands? ## UNTES

Re: How can I list down all builtin functions?(Re: Read a text file starting from the bottom)

2007-01-14 Thread John W. Krahn
Michael Alipio wrote: > Hi, Hello, > Is there a way to list down all builtin functions so that I may know what to > "perldoc -f"? perldoc perlfunc Near the top is the list of "Perl Functions by Category" John -- Perl isn't a toolbox, but a small machine shop where you can special-order cert

How can I list down all builtin functions?(Re: Read a text file starting from the bottom)

2007-01-14 Thread Michael Alipio
Hi, Is there a way to list down all builtin functions so that I may know what to "perldoc -f"? Thanks. - Original Message From: Michael Alipio <[EMAIL PROTECTED]> To: beginners@perl.org Sent: Monday, January 15, 2007 1:44:22 PM Subject: Read a text file starting from the bottom Hi,

Read a text file starting from the bottom

2007-01-14 Thread Michael Alipio
Hi, I wanted to extract the start time of a particular logfile (located at the beginning of the file, and also the end time which is located at the end of the logfile. Is there any way to do this in perl without using "head" or "tail" commands? Thanks. By the way, can you point me somewhere p

Re: Converting to capital only one word in a line

2007-01-14 Thread John W. Krahn
Leonid Grinberg wrote: >> You don't have to escape the colon in a regular expression. > > Oh, cool. Didn't know that. > >> > my $home = $split_line[5]; >> > my @split_home = split(/\/, $home); >> ^^^ >> Syntax error. The terminating delimiter is missing. > > I am confus

Re: Converting to capital only one word in a line

2007-01-14 Thread Leonid Grinberg
You don't have to escape the colon in a regular expression. Oh, cool. Didn't know that. > my $home = $split_line[5]; > my @split_home = split(/\/, $home); ^^^ Syntax error. The terminating delimiter is missing. I am confused. What do you mean, the terminating delimt

Re: Converting to capital only one word in a line

2007-01-14 Thread John W. Krahn
Leonid Grinberg wrote: > my @split_line = split(/\:/, $line); You don't have to escape the colon in a regular expression. > my $home = $split_line[5]; > my @split_home = split(/\/, $home); ^^^ Syntax error. The terminating delimiter is missing. > return uc($split_home[s

Re: Converting to capital only one word in a line

2007-01-14 Thread Leonid Grinberg
my @split_line = split(/\:/, $line); my $home = $split_line[5]; my @split_home = split(/\/, $home); return uc($split_home[scalar(@split_home) - 1]); On 1/11/07, Emilio Casbas <[EMAIL PROTECTED]> wrote: I know that this is not a exact perl question, but maybe someone has a perl solution. You hav

Re: array searching

2007-01-14 Thread John W. Krahn
Jim Canon wrote: > > On 1/14/07, John W. Krahn <[EMAIL PROTECTED]> wrote: >> >> Jim Canon wrote: >> > >> > Thank you very much for the response, it has helped me begin to >> > understand how regular expressions work. I see that /(\d+)$/ >> > matches the numbers until the end of line in >> > >> >

Re: Any Perl graphing libraries with alpha blending?

2007-01-14 Thread Tom Smith
Dr.Ruud wrote: Daniel Kasak schreef: I'm after a Perl graphing library that includes alpha blending support. I've checked out GD::Graph, but it *doesn't* support alpha blending. Are there any options? I know of jpgraph for PHP ( which is excellent for open-source stuff, but the commercial li

Re: array searching

2007-01-14 Thread Jim Canon
By numbers in front I am referring to word1 word2 job2006 in the element: word1 word2 job2006 three four five six community job555 It seems that /(\d+)$/ matches word1 word2 job2006 job555 I was reviewing http://perldoc.perl.org/perlre.html but am having trouble determining the best way to match j

Re: array searching

2007-01-14 Thread John W. Krahn
Jim Canon wrote: > > Thank you very much for the response, it has helped me begin to understand > how regular expressions work. I see that /(\d+)$/ matches the numbers > until the end of line in > > @job1 = qw( > job555 > job572 > job8433 > job873 > job594 > job4663 > job2221 > job2223 >

Re: How to determine the most recent file created

2007-01-14 Thread John W. Krahn
Steve Golamco wrote: > I have a directory (say, dir-A) wherein every 10 minutes an 'autosave' file > is created. These files are named 'reports.*.autosave' where the asterisk > would represent some numeric value. These numeric values are NOT in > any particular sequence. Every 10 minutes, I need

Re: Any Perl graphing libraries with alpha blending?

2007-01-14 Thread Dr.Ruud
Daniel Kasak schreef: > I'm after a Perl graphing library that includes alpha blending > support. I've checked out GD::Graph, but it *doesn't* support alpha > blending. Are there any options? I know of jpgraph for PHP ( which is > excellent for open-source stuff, but the commercial license is too

Re: How to determine the most recent file created

2007-01-14 Thread Ken Foskey
On Sun, 2007-01-14 at 11:04 -0800, Steve Golamco wrote: > I have a directory (say, dir-A) wherein every 10 minutes an 'autosave' file > is created. These files are named 'reports.*.autosave' where the asterisk > would represent some numeric value. These numeric values are NOT in > any particular

Re: How to determine the most recent file created

2007-01-14 Thread Mathew
Steve Golamco wrote: > I have a directory (say, dir-A) wherein every 10 minutes an 'autosave' file > is created. These files are named 'reports.*.autosave' where the asterisk > would represent some numeric value. These numeric values are NOT in > any particular sequence. Every 10 minutes, I need

How to determine the most recent file created

2007-01-14 Thread Steve Golamco
I have a directory (say, dir-A) wherein every 10 minutes an 'autosave' file is created. These files are named 'reports.*.autosave' where the asterisk would represent some numeric value. These numeric values are NOT in any particular sequence. Every 10 minutes, I need to copy the most recent (la

Re: grep is too slow...

2007-01-14 Thread John W. Krahn
Jim Magnuson wrote: > Hi, Hello, > I was able to get my Finnish corpus project off the ground this > week with help from this group; thank you very much. > > Now I've run into a small problem. After reading in the corpus of > 470,000 words and breaking them into syllables, I have created a lis

Any Perl graphing libraries with alpha blending?

2007-01-14 Thread Daniel Kasak
I'm after a Perl graphing library that includes alpha blending support. I've checked out GD::Graph, but it *doesn't* support alpha blending. Are there any options? I know of jpgraph for PHP ( which is excellent for open-source stuff, but the commercial license is too expensive ). -- Daniel Kas

Re: comparing hashes

2007-01-14 Thread Mumia W.
On 01/13/2007 12:43 PM, xavier mas wrote: A Dissabte 13 Gener 2007 18:53, Xavier Noria va escriure: On Jan 13, 2007, at 6:29 PM, xavier mas wrote: hello list, I am trying to find if an element in one primary file (transformed to array) is included in two other different secondary files (transf

Re: grep is too slow...

2007-01-14 Thread Jay Savage
On 1/14/07, Jim Magnuson <[EMAIL PROTECTED]> wrote: Hi, I was able to get my Finnish corpus project off the ground this week with help from this group; thank you very much. Now I've run into a small problem. After reading in the corpus of 470,000 words and breaking them into syllables, I have cr

grep is too slow...

2007-01-14 Thread Jim Magnuson
Hi, I was able to get my Finnish corpus project off the ground this week with help from this group; thank you very much. Now I've run into a small problem. After reading in the corpus of 470,000 words and breaking them into syllables, I have created a list of all possible "nonwords" (words

Re: [SPAM DETECT] Re: comparing hashes

2007-01-14 Thread fxn
> A Diumenge 14 Gener 2007 12:33, [EMAIL PROTECTED] va escriure: > That's the program in full and a sample of the files (same as before): > > dict.txt: house, man, woman, kid, kitchen > img.txt: ball, dog, cat, lion > in.txt: woman, lion, dog I'll stop here, please if any other regular wants to t

Re: [SPAM DETECT] Re: comparing hashes

2007-01-14 Thread xavier mas
A Diumenge 14 Gener 2007 12:33, [EMAIL PROTECTED] va escriure: > > A Diumenge 14 Gener 2007 11:20, Xavier Noria va escriure: > >> Xavier, this is being inefficient. > >> > >> If you don't send a minimal example together with data example that > >> reproduces the issue this is a come and go of secon

Re: comparing hashes

2007-01-14 Thread fxn
> A Diumenge 14 Gener 2007 11:20, Xavier Noria va escriure: >> Xavier, this is being inefficient. >> >> If you don't send a minimal example together with data example that >> reproduces the issue this is a come and go of second-guesses, which >> is a waste of time. Please send them so we can go str

Re: comparing hashes

2007-01-14 Thread xavier mas
A Diumenge 14 Gener 2007 11:20, Xavier Noria va escriure: > Xavier, this is being inefficient. > > If you don't send a minimal example together with data example that > reproduces the issue this is a come and go of second-guesses, which > is a waste of time. Please send them so we can go straight t

Re: comparing hashes

2007-01-14 Thread Xavier Noria
Xavier, this is being inefficient. If you don't send a minimal example together with data example that reproduces the issue this is a come and go of second-guesses, which is a waste of time. Please send them so we can go straight to understand what happens. -- fxn -- To unsubscribe, e-m

Re: comparing hashes

2007-01-14 Thread xavier mas
A Diumenge 14 Gener 2007 06:39, Bill Jones va escriure: > On 1/13/07, xavier mas <[EMAIL PROTECTED]> wrote: > > Yes, this is the code I use, but still doesn't work to me and I can't > > find the cause. > > Have you looked the results using Data::Dumper? Maybe the results > aren't as expected? > >