t.b.b. has asked for the wisdom of the Perl Monks concerning the following question:
Here is the problem part of the output:my $jobdirectory = "../jobs/"; my $linklist = joblist($jobdirectory); foreach my $jobInDirectory (@$linklist) { next unless ($jobInDirectory =~ m/\.html$/); $linklist = $linklist . '<a href="http://post/jobs/' . $jobInDirec +tory . '">' . $jobInDirectory . '</a>' . '<br />'; } open (LISTING, '>> ../jobs/index.html'); print LISTING $cgi->start_html( -title => 'Job Postings') . '<div id="main">' . $linklist . '</div>' . $cgi->end_html . "\n";
It's all good, with the exception of that unwanted "ARRAY(0x8187600)".ARRAY(0x8187600)SP_HT_54.html SP_HT_59.html SP_HT_53.html SP_HT_52.html SP_HT_55.html
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array address returned as part of list
by kennethk (Abbot) on Nov 16, 2010 at 19:17 UTC | |
by t.b.b. (Initiate) on Nov 16, 2010 at 19:22 UTC | |
|
Re: Array address returned as part of list
by ikegami (Patriarch) on Nov 16, 2010 at 19:18 UTC |