Re: capturing, computing the ephemeris and passing it to gfortran

Discussion in 'Perl Misc' started by Charlton Wilbur, Jan 24, 2013.

  1. >>>>> "CD" == Cal Dershowitz <> writes:

    CD> How does one use perl to upload images with the meta-data?

    One figures out what protocol the server or service one is uploading to
    uses to communicate about images and metadata, and one implements that
    protocol in Perl. Then one uses that protocol to upload the images and
    that metadata.

    Different people can work on different parts of that solution, and there
    is a fair chance that the minimally clueful can find the first part
    mostly done on CPAN if they are using a common service.

    Charlton





    --
    Charlton Wilbur
     
    Charlton Wilbur, Jan 24, 2013
    #1
    1. Advertising

  2. >>>>> "CD" == Cal Dershowitz <> writes:

    CD> The documentation
    CD> there though is pretty thin.

    Perhaps you are not looking in the right place:

    perldoc perlref
    perldoc perlreftut

    Charlton


    --
    Charlton Wilbur
     
    Charlton Wilbur, Jan 31, 2013
    #2
    1. Advertising

  3. Charlton Wilbur

    C.DeRykus Guest

    On Thursday, January 31, 2013 10:35:07 PM UTC-8, Cal Dershowitz wrote:
    > ...
    > $ ./capture4.pl
    >
    > Not a SCALAR reference at ./capture4.pl line 12.
    >
    > $ perltidy -b capture4.pl
    >
    > $ cat capture4.pl
    >
    > #!/usr/bin/perl -w
    >
    > use strict;
    >
    > use autodie;
    >
    > use utf8;
    >
    > use WWW::Mechanize;
    >
    > use HTML::TokeParser;
    >
    >
    >
    > my $url = 'http://www.fourmilab.ch/yoursky/';
    >
    > my $mech = WWW::Mechanize->new;
    >
    > my $result = $mech->get($url);
    >
    > die "GET failedn" unless $result->is_success;
    >
    > my $res = $$result;

    ^^^^^^^^^

    $result is an HTTP::Response object so you'll
    want something like this, eg,

    my $res = $result->as_string;

    or:

    my $res = $result->dump(...);

    See: perldoc HTTP::Message for more about dump()
    options

    > print "res is" . $res . "\n";
    > ...


    You'll need to research and modify appropriately
    the following as well:

    > my $res2 = $$element;


    --
    Charles DeRykus
     
    C.DeRykus, Feb 1, 2013
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave
    Replies:
    6
    Views:
    481
    Geoff Gerrietts
    Sep 6, 2003
  2. Tim Peters
    Replies:
    0
    Views:
    378
    Tim Peters
    Sep 6, 2003
  3. optical supercomputing

    Optical Computing: special issue - Natural Computing, Springer

    optical supercomputing, Dec 19, 2008, in forum: C Programming
    Replies:
    0
    Views:
    433
    optical supercomputing
    Dec 19, 2008
  4. optical supercomputing

    Optical Computing: special issue - Natural Computing, Springer

    optical supercomputing, Jan 16, 2009, in forum: C Programming
    Replies:
    0
    Views:
    457
    optical supercomputing
    Jan 16, 2009
  5. Jürgen Exner
    Replies:
    0
    Views:
    221
    Jürgen Exner
    Jan 24, 2013
Loading...

Share This Page