[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] Adgang til ekstern csv fil



"Henning Hansen" <sslug@sslug> writes:

> Jeg skal lave et perlscript som skal lave et opslag i en csv fil. Problemet 
> er at denne fil ligger på en anden server på www. Jeg kan ikke få dette til 
> at fungere.

Brug LWP::Simple

Fra manualsiden:

NAME
       LWP::Simple - simple procedural interface to LWP

SYNOPSIS
        perl -MLWP::Simple -e 'getprint "http://www.sn.no";'

        use LWP::Simple;
        $content = get("http://www.sn.no/";);
        die "Couldn't get it!" unless defined $content;

        if (mirror("http://www.sn.no/";, "foo") == RC_NOT_MODIFIED) {
            ...
        }

        if (is_success(getprint("http://www.sn.no/";))) {
            ...
        }

[...]

-- 
 Peter Makholm     |              Emacs is the only modern general-purpose
 sslug@sslug |               operating system that doesn't multitask
 http://hacking.dk |                                                      


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-01-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *