how to only read the files last 13 lines

2012-06-12 Thread lina
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/

Re: how to only read the files last 13 lines

2012-06-12 Thread pangj
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))

Re: how to only read the files last 13 lines

2012-06-12 Thread Shekar
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

Re: how to only read the files last 13 lines

2012-06-12 Thread timothy adigun
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

How to create a user manual window

2012-06-12 Thread Yu-Shan Wang
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

Re: how to only read the files last 13 lines

2012-06-12 Thread Shlomi Fish
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

Re: How to create a user manual window

2012-06-12 Thread Shlomi Fish
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

Re: ERROR: Argument isn't numeric

2012-06-12 Thread Andy Bach
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

Re: How to create a user manual window

2012-06-12 Thread Shlomi Fish
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

Re: How to create a user manual window

2012-06-12 Thread 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] -- Paul Johnson - p...@pjcj.net http://www.pjcj.net -- To unsubscribe, e-mail:

RE: How to create a user manual window

2012-06-12 Thread Bob McConnell
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

Re: How to create a user manual window

2012-06-12 Thread Michael Putch
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

Re: How to create a user manual window

2012-06-12 Thread Michael Putch
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/

HTML::TextToHTML Doesn't Work with instring

2012-06-12 Thread Mike Flannigan
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

Re: How to create a user manual window

2012-06-12 Thread Shlomi Fish
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,