mooker has asked for the wisdom of the Perl Monks concerning the following question:
#this one works sub getNumbers{ foreach(@file){ next if m/(^#|^$)/; my ($cltnbr, $cltname) = split (' ', $_); print "<span class='spacer'><a href='#' title='$cltnbr' name=' +$cltname' onclick='fillText(this);'>$cltnbr</a></span>"; } }
#help! sub getClients{ foreach(@file){ next if m/(^#|^$)/; my ($cltnbr, $cltname) = split (' ', $_); print "<a href='#' title='$cltnbr' name='$cltname' onclick='fi +llText(this);'>$cltname</a><br />"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sorting a file
by Roy Johnson (Monsignor) on Oct 18, 2005 at 16:42 UTC | |
|
Re: sorting a file
by InfiniteSilence (Curate) on Oct 18, 2005 at 17:50 UTC | |
by mooker (Initiate) on Oct 19, 2005 at 12:30 UTC |