perlboer has asked for the wisdom of the Perl Monks concerning the following question:
Question: must it be i a form?sub print_prompt { my($query) = @_; open( INFILE, "$conf_file" ) or die "$!"; while (<INFILE>) { chomp; next if 0 == length($_); # Solves "Use o +f uninitialized value in .......... " my @elem = split ","; print("$elem[0]\n") if $debug; #description print("$elem[1]\n") if $debug; #URL print("$elem[2]\n") if $debug; #nr how many tim +es viewed the URL print "<a href=$elem[1] target=\"_blank\" >$elem[0]</a><br>"; } close INFILE; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: fetch url
by Joost (Canon) on May 27, 2005 at 10:30 UTC | |
|
Re: fetch url
by dorward (Curate) on May 27, 2005 at 10:32 UTC | |
by perlboer (Acolyte) on May 27, 2005 at 11:24 UTC | |
by dorward (Curate) on May 27, 2005 at 12:32 UTC | |
by perlboer (Acolyte) on May 27, 2005 at 14:19 UTC | |
by dorward (Curate) on Jun 05, 2005 at 09:19 UTC |