Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: IO::Dir confusing behaviour

by Amoe (Friar)
on Nov 21, 2001 at 21:29 UTC ( #126795=note: print w/ replies, xml ) Need Help??


in reply to IO::Dir confusing behaviour

Um, are you actually printing the HTML you define in the loops? And it seems to be wrongly quoted...perhaps something like this:

if (scalar ( keys %arquivos) ne 0) { foreach (keys %arquivos) { if ($_ ne "." && $_ ne "..") { print qq{<a href="$file_folder$_\">$_</a>\n}; } } } else { print "These aren't the files you're looking for. Move along. +\n"; }
Otherwise, could you please explain the line I corrected?

--
my one true love


Comment on Re: IO::Dir confusing behaviour
Download Code
Re: Re: IO::Dir confusing behaviour
by DaWolf (Curate) on Nov 21, 2001 at 22:10 UTC
    Hmmm sorry 'bout that.

    That's the problem with changing the code to post a question.

    Actually I'm putting that html snip in a variable like:
    $html_code .= "<a href=\"$file_folder$_\">$_</a>";
    Er Galv„o Abbott
    a.k.a. Lobo, DaWolf
    Webdeveloper

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://126795]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2015-07-03 00:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (47 votes), past polls