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
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
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,
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
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
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
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
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
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
>> >
>> >
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
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
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
>
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
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
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
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
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
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
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
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
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
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
> 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
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
> 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
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
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
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?
>
>
28 matches
Mail list logo