Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Re: capturing, computing the ephemeris and passing it to gfortran

Reply
Thread Tools

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

 
 
Charlton Wilbur
Guest
Posts: n/a
 
      01-24-2013
>>>>> "CD" == Cal Dershowitz <(E-Mail Removed)> 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
http://www.velocityreviews.com/forums/(E-Mail Removed)
 
Reply With Quote
 
 
 
 
Charlton Wilbur
Guest
Posts: n/a
 
      01-31-2013
>>>>> "CD" == Cal Dershowitz <(E-Mail Removed)> 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
(E-Mail Removed)
 
Reply With Quote
 
 
 
 
C.DeRykus
Guest
Posts: n/a
 
      02-01-2013
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: capturing, computing the ephemeris and passing it to gfortran Jürgen Exner Perl Misc 0 01-24-2013 12:26 PM
Javascript for ephemeris Eurydice Javascript 2 08-05-2004 08:29 AM
Python Port to Swiss Ephemeris (swe_houses) Bug Report/Workaround Dave Python 2 09-09-2003 06:05 PM
RE: Python port to Swiss Ephemeris work with 2.3? Tim Peters Python 0 09-06-2003 03:28 AM
Python port to Swiss Ephemeris work with 2.3? Dave Python 6 09-06-2003 03:14 AM



Advertisments