Re: Create HTML code with perl

2006-09-04 Thread Jeff Pang
> > > > >Tste > >Tste > > > > > >Tste > >Tste > > > > > Hi, you can print them like: print < .. HTML_EOF (notice:there should be no spaces before or after the second HTML_EOF symbol). or print qq { ... }; -- Jeff Pa

RE: Create HTML code with perl

2006-09-04 Thread Charles K. Clarkson
[EMAIL PROTECTED] wrote: : : I tried with this way, but not work: One reason for the problem is that perl does not recognize " and " as operators. The print statement needs some type of delimiter to print plain text. As you probably know already, a pair of double quotes (") is one set of

Re: Need Help

2006-09-04 Thread Dr.Ruud
"Ashok Varma" schreef: > -- --- > open(FH, "/your/file/path"); > my @file = ; > close FH; > > open(FH, ">/your/new/file"); > > foreach my $line (@file) { Since you are processing the file line-by-line, you'd better use "while

Re: code needed

2006-09-04 Thread Eric Krause
Check out this web page, http://www.developer.com/lang/other/article.php/3454041. It has examples that return link and tags using WWW::Mechanize, which is a subset of LWP. -Eric Hal Wigoda wrote: anyone have any code that will return the links and tags from web document downloaded using LWP

Create HTML code with perl

2006-09-04 Thread Webmaster Adil
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

Re: Create HTML code with perl

2006-09-04 Thread David Van Ginneken
On 9/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 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 MAP

Re: how to delete elements in AoA

2006-09-04 Thread chen li
--- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > 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], > >>>

Re: Create HTML code with perl

2006-09-04 Thread Adilson
David, i used the Charles's tips (with ' delimiter) and now it works. Thanks all. Adilson David Van Ginneken wrote: On 9/4/06, [EMAIL PROTECTED] * <[EMAIL PROTECTED] > wrote: Hi All I need print HTML codes with perl:

Re: how to delete elements in AoA

2006-09-04 Thread D. Bolliger
chen li am Montag, 4. September 2006 15:51: > --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > > chen li wrote: > > > --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: [...] > > > my @data=( > > > ['1','1','1'], > > > ['2','2','2'], > > > [''], > > > ['3','3','3

Re: code needed

2006-09-04 Thread Hal Wigoda
the code on page 3 looks like it might be very helpful. On Sep 4, 2006, at 7:07 AM, Eric Krause wrote: Check out this web page, http://www.developer.com/lang/other/ article.php/3454041. It has examples that return link and tags using WWW::Mechanize, which is a subset of LWP. -Eric Hal Wi

Regex not working as expected

2006-09-04 Thread Chris Schults
I have a regular expression that is suppose to truncate long URLs at 50 characters and add "...", but can't figure out why it is not working with a particular URL. Here is the regex: $url =~s#>((?:http\|ftp\|file)://.{50}).+#>$1...#g; And here is the problem URL: http://www.washingtonpost.com/w

Re: Regex not working as expected

2006-09-04 Thread Adriano Ferreira
Chris, I found your solution to work alright, with the exception that you probably don't want to escape | as in (?:http\|ftp\|file) but only (?:http|ftp|file) So that the test script below succeeds: use Test::More tests => 3; { my $url = "http://foo.org/"; $url =~s#>((?:ht

Re: process data into an array using CGI script

2006-09-04 Thread Peter Scott
At 08:34 AM 9/3/2006, you wrote: > my @data = map [ split ] => split /\r?\n/, > param('data'); Thanks and I like this syntax. But where can I find this syntax perldoc? http://learn.perl.org/beginners-faq #2.7. Please post all questions to the group, not privately. Thanks. -- Peter Scott Paci

Re: process data into an array using CGI script

2006-09-04 Thread Peter Scott
At 10:58 AM 9/3/2006, you wrote: > my @data = map [ split ] => split /\r?\n/, > param('data'); Hi Peter, Sorry to bother again. What if I have some lines containing nothing(blank lines) and how do I remove these lines before using the map function? I try "chomp $data" but it doesn't work. my

Re: Removing unnecessary data

2006-09-04 Thread D. Bolliger
[sorry to all for not snipping the mail] > D. Bolliger am Montag, 4. September 2006 03:57: > > 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 li

Re: how to delete elements in AoA

2006-09-04 Thread Rob Dixon
John W. Krahn wrote: 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], [] ); How can I re

Re: code needed

2006-09-04 Thread Scott T. Hildreth
Since this is not a dbi problem, can DBI-Users be taken off the cc list. On Mon, 2006-09-04 at 08:07 -0400, Eric Krause wrote: > Check out this web page, > http://www.developer.com/lang/other/article.php/3454041. It has examples > that return link and tags using WWW::Mechanize, which is a su

can't print to STDOUT on 5.8.4

2006-09-04 Thread Michael Alipio
Hi, I was running this command on my perl program, open FLOWTOOLS, "|/usr/bin/flow-cat $start | /usr/bin/flow-nfilter -f filter.tmp -F $direction |/usr/bin/flow-stat -Pf8 | le ss" or die $!; It does output something on the screen when I run it on FreeBSD 6.1/perl 5.8.8 (while on csh) However, w