Create Html files in a folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RdKodes
    New Member
    • Mar 2012
    • 3

    Create Html files in a folder

    I have "http://finance.yahoo.c om/q/ks?s=TLM" stored in a variable.

    $Link= "http://finance.yahoo.c om/q/ks?s=TLM";

    Now, I would want to create a folder and save this page in that folder.


    Example: Dir/Folder/FileName

    How do I do it in Perl?
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Did you happen to do a search on Google for downloading a web page with Perl? You need to exhaust all of your resources.

    My search produced this page as the first link, which explains how to use the LWP::Simple module to do what you want.

    Regards,

    Jeff

    Comment

    • RdKodes
      New Member
      • Mar 2012
      • 3

      #3
      Got it, This did it:-

      Code:
      mkdir("Dir");
      
      $Link= "http://finance.yahoo.com/q/ks?s=TLM";
      
      getstore($Link, "Dir/TLM/FileName.html");
      Last edited by Frinavale; Mar 26 '12, 03:03 PM. Reason: Changed bold tags into code tags.

      Comment

      Working...