in reply to Re: Links to web page?
in thread Links to web page?

I know how to make link with HTML but I do not know how to adapt it to this part of my code??
{ print "$f<br />"; }

Replies are listed 'Best First'.
Re^3: Links to web page?
by jeffa (Bishop) on Dec 03, 2008 at 17:25 UTC

    You need to wrap the name of the file inside an anchor tag. I think you should follow the advice given so far, but I can't help but try to impress you with this :)

    use strict; use warnings; use CGI qw(:all); print header(), ul( map li( a( {href => $_}, $_ ) ), <*.*> ) ;

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    
      Where to put that piece of code? Instead of Prnit command or where?

        Only keep the first two lines of your code and replace the rest with what I provided. I would first copy your script to a new text file and change the copy, not your original.

        jeffa

        L-LL-L--L-LL-L--L-LL-L--
        -R--R-RR-R--R-RR-R--R-RR
        B--B--B--B--B--B--B--B--
        H---H---H---H---H---H---
        (the triplet paradiddle with high-hat)