Open a web file through Perl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sumsriva
    New Member
    • Jun 2007
    • 1

    Open a web file through Perl

    I need to open a file which is on the web through Perl
    Basically i am looking for something as

    open(FILE,"http s://ims-svn.swissbank.c om/trunk/config.properti es")
    || die "ERROR: (Build Master) Unable to open environment file";

    Any help , how it can be accomplished in Perl ?

    Cheers,
    Sumit
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    one of the below should be able to do this:

    LWP::Simple
    LWP::UserAgent
    WWW::Mechanize

    Search for them on http://search.cpan.org/

    what you can't do is use the open() function, that is for opening files on a local computer.

    Comment

    Working...