Re: Need Help

2006-09-03 Thread Ashok Varma
If you can provide me a sample file maybe i can help more. i am guessing your file and writing a sample below. - open(FH, "/your/file/path"); my @file = ; close FH; open(FH, ">/your/new/file"); foreach my $line (@file)

RE: Create HTML code with perl

2006-09-03 Thread Wijaya Edward
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Mon 9/4/2006 12:28 PM To: beginners@perl.org Subject: Create HTML code with perl Hi, I need print HTML codes with perl: Don't print the HTML verbatim like that. Check out CGI.pm. Makes your life easier.

Create HTML code with perl

2006-09-03 Thread preimp
Hi All I need print HTML codes with perl: Tste Tste Tste Tste I tried with this way, but not work: print MAPA “”; print MAPA "\n"; print MAPA "teste\n"; print MAPA "teste\n"; print MAPA "\n"; print MAPA "\n"; print MAPA "teste\n"; print MAP

Re: Need Help

2006-09-03 Thread John W. Krahn
Nagakishor, K wrote: > I have a file containing 100's of structures in it. In that file I need > to identify the structures with particular name (ex: N1 AND N2) and dump > the values of only some fields (ex: P1 AND P2) in to another file. > > If a structure does not contain the names N1 AND N2, t

Need Help

2006-09-03 Thread Nagakishor, K
I have a file containing 100's of structures in it. In that file I need to identify the structures with particular name (ex: N1 AND N2) and dump the values of only some fields (ex: P1 AND P2) in to another file. If a structure does not contain the names N1 AND N2, then we should skip it. May

Removing Unnecessary data

2006-09-03 Thread Geetha Weerasooriya
Dear Mr. Dani,   Thanks for your mail. I am so happy that you are exactly understanding my problem and you have already understood it correctly even beyond what I have explained.     Sorry there are 10 data fields and I have given the 10 labels. Distance and Flag are two labels. Distanc

Re: Removing unnecessary data

2006-09-03 Thread D. Bolliger
Geetha Weerasooriya am Sonntag, 3. September 2006 16:22: > Dear Mr.Dani, > > Thank you very much for the reply. I understand that but question is not > clear. I will explain my problem little more. > > Below is the sample of my data set. Actual data file is very much > larger.( about 3 GB) [please

Re: code needed

2006-09-03 Thread Hal Wigoda
i have tried that one, also. i will do furthur research and let you know On Sep 3, 2006, at 8:21 PM, Tom Phoenix wrote: On 9/3/06, Hal Wigoda <[EMAIL PROTECTED]> wrote: HTML-LinkExtractor-0.13 libwww-perl-5.805 linkcheck-1.05 HTML-Parser-3.55 HTML-SimpleLinkExtor-1.13 HTML-Tagset-3.10

Re: code needed

2006-09-03 Thread Tom Phoenix
On 9/3/06, Hal Wigoda <[EMAIL PROTECTED]> wrote: HTML-LinkExtractor-0.13 libwww-perl-5.805 linkcheck-1.05 HTML-Parser-3.55 HTML-SimpleLinkExtor-1.13 HTML-Tagset-3.10 have failed me. In what way have they failed you? Are they somehow insufficient for your task? Have you tried HTML::LinkExtor?

Re: code needed

2006-09-03 Thread Hal Wigoda
sure i have - HTML-LinkExtractor-0.13 libwww-perl-5.805 linkcheck-1.05 HTML-Parser-3.55 HTML-SimpleLinkExtor-1.13 HTML-Tagset-3.10 have failed me. On Sep 3, 2006, at 7:21 PM, Tom Phoenix wrote: On 9/3/06, Hal Wigoda <[EMAIL PROTECTED]> wrote: anyone have any code that will return the links

Re: code needed

2006-09-03 Thread Tom Phoenix
On 9/3/06, Hal Wigoda <[EMAIL PROTECTED]> wrote: anyone have any code that will return the links and tags from web document downloaded using LWP? Have you looked on CPAN yet? http://search.cpan.org/ Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAI

code needed

2006-09-03 Thread Hal Wigoda
anyone have any code that will return the links and tags from web document downloaded using LWP? hal chicago -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how to delete elements in AoA

2006-09-03 Thread John W. Krahn
chen li wrote: > > --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > >>chen li wrote: >> >>>Sorry to bother again. I get an AoA containing >>empty >>>elements like these: >>> >>>my @data=( >>> [1,1,1], >>> [2,2,2], >>> [], >>> [3,3,3], >>> [] >>>

Re: how to delete elements in AoA

2006-09-03 Thread Dr.Ruud
chen li schreef: > my @data=( >[1,1,1], >[2,2,2], >[], >[3,3,3], >[] > ); > > [remove empty element] Can I > use grep function to do it? Yes, but you might also be able to not insert them. -- Affijn, Ruud "Gewoon is een tijger

Re: how to delete elements in AoA

2006-09-03 Thread John W. Krahn
chen li wrote: > Hi guys, Hello, > Sorry to bother again. I get an AoA containing empty > elements like these: > > my @data=( >[1,1,1], >[2,2,2], >[], >[3,3,3], >[] > ); > > How can I remove the empty element in this AoA? Can I

how to delete elements in AoA

2006-09-03 Thread chen li
Hi guys, Sorry to bother again. I get an AoA containing empty elements like these: my @data=( [1,1,1], [2,2,2], [], [3,3,3], [] ); How can I remove the empty element in this AoA? Can I use grep function to do it? Thanks, Li __

RE: Removing unnecessary data

2006-09-03 Thread Geetha Weerasooriya
Dear Mr.Dani, Thank you very much for the reply. I understand that but question is not clear. I will explain my problem little more. Below is the sample of my data set. Actual data file is very much larger.( about 3 GB) Dat

Re: Removing unnecessary data

2006-09-03 Thread D. Bolliger
Geetha Weerasooriya am Sonntag, 3. September 2006 08:19: > Hi Dear all, Hi Geetha Weerasooriya > I have a data file for bus trajectories where bus location at each > second along the route is given. The specified route for the bus is from > origin (Point A) to Destination (Point B) , but sometime

Re: process data into an array using CGI script

2006-09-03 Thread Xavier Mas i Ramón
A Diumenge 03 Setembre 2006 03:09, chen li va escriure: > Dear all, > > I paste some data into textarea in a CGI script and > use param('data')to retrieve the data. I want to pass > the data into an array but what I find is that I only > one dimensional array. Can someone here give me a > hand? > >