how to save URL into a file

would anyone tell me how to save URL into a file in Perl?

Thanks for help


  • Hi,

    Don't know how much Perl you know.... But, here is how you append a URL to the end of a file, so you can have a list of them:-

    open FILE, ">>filename.dat";
    print FILE $url;
    close FILE;

    Where $url contains the URL. Or for a new file, take the >> and shorten it to just > - that overwrites or newly creates rather than appends.

    If you are unsure how to get the URL into the variable $url, please give me more details of what you try to do, and I'll help you more.

    Take care,


    Count downloads from your site for free!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion