Hi,
How to read the files last 13 lines,
only process the data of the last 13 lines, ignore the head parts.
Thanks with best regards,
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
How to read the files last 13 lines,
only process the data of the last 13 lines, ignore the head parts.
Thanks with best regards,
Try File::Tail, this is might what you are looking for:
use File::Tail;
my $file=File::Tail-new(name=file.txt, tail=13);
while (defined(my $line=$file-read))
If you are on linux, try command -tail -13 FILE_NAME
--
Shekar
On Tue, Jun 12, 2012 at 11:38 AM, lina lina.lastn...@gmail.com wrote:
Hi,
How to read the files last 13 lines,
only process the data of the last 13 lines, ignore the head parts.
Thanks with best regards,
--
To
Hi lina,
On Tue, Jun 12, 2012 at 7:08 AM, lina lina.lastn...@gmail.com wrote:
Hi,
How to read the files last 13 lines,
only process the data of the last 13 lines, ignore the head parts.
Thanks with best regards,
you can also use Tie::File like so:
use Tie::File;
my
I am trying to create a “Help” document using Perl. I have a GUI and made
a dropdown menu with “Help” option. I am hoping to create a new window and
have a something like a dirtree so that user can select the topic. Once it
is selected, the window will display the guidance. (Just like the Help
Hi Lina,
On Tue, 12 Jun 2012 14:08:45 +0800
lina lina.lastn...@gmail.com wrote:
Hi,
How to read the files last 13 lines,
only process the data of the last 13 lines, ignore the head parts.
Thanks with best regards,
in addition to what other people here said, please look at
Hello Tiffany,
On Tue, 12 Jun 2012 01:05:54 -0700
Yu-Shan Wang ysw2...@gmail.com wrote:
I am trying to create a “Help” document using Perl. I have a GUI and made
a dropdown menu with “Help” option. I am hoping to create a new window and
have a something like a dirtree so that user can select
foreach $i (@dir) {
my @title = split /\./, $dir[$i];
$i is your file name so split that not the @dir entry. You're sort of trying
the same thing twice. foreach gets each array element, one at a time - you're
split usage implies you're expecting the array's index (also the var. name $i so
Hi Tiffany,
please submit your replies to the list, so other people will be able to help
you there (as I request in the last line of my signature). I'm CCing my reply.
On Tue, 12 Jun 2012 07:58:00 -0700
Yu-Shan Wang ysw2...@gmail.com wrote:
Hi Shlomi,
Sorry for missing information. I am
On Tue, Jun 12, 2012 at 07:11:57PM +0300, Shlomi Fish wrote:
OK. For Windows there is now http://dwimperl.com/ which is open-source and is
considered better than Activestate Perl.
[citation needed]
--
Paul Johnson - p...@pjcj.net
http://www.pjcj.net
--
To unsubscribe, e-mail:
From: Paul Johnson
On Tue, Jun 12, 2012 at 07:11:57PM +0300, Shlomi Fish wrote:
OK. For Windows there is now http://dwimperl.com/ which is open-source
and is
considered better than Activestate Perl.
[citation needed]
I don't know about DWIMPerl itself, but it claims to be based on
On Tue, Jun 12, 2012 at 9:50 AM, Bob McConnell r...@cbord.com wrote:
From: Paul Johnson
On Tue, Jun 12, 2012 at 07:11:57PM +0300, Shlomi Fish wrote:
OK. For Windows there is now http://dwimperl.com/ which is open-source
and is
considered better than Activestate Perl.
[citation
I hate when I do that. :(This email contains my actual comments (see
below).
On Tue, Jun 12, 2012 at 9:50 AM, Bob McConnell r...@cbord.com wrote:
From: Paul Johnson
On Tue, Jun 12, 2012 at 07:11:57PM +0300, Shlomi Fish wrote:
OK. For Windows there is now http://dwimperl.com/
Anybody know why the script below does not work?
I can get HTML::TextToHTML to work fine with the
infile option, but not the instring option.
My htmlout.htm end up with just these 2 lines:
/BODY
/HTML
I expected it to have abcdefghijklm in it.
More info on HTML::TextToHTML options is located
Hi Michael,
On Tue, 12 Jun 2012 16:00:34 -0700
Michael Putch mike.pu...@gmail.com wrote:
I hate when I do that. :(This email contains my actual comments (see
below).
On Tue, Jun 12, 2012 at 9:50 AM, Bob McConnell r...@cbord.com wrote:
From: Paul Johnson
On Tue, Jun 12,
15 matches
Mail list logo