as for the prob i got it working, all it needed was ;
my $content = get $url;
changing to
my $content = get($url);
Really? I find that hard to believe:
Update: I stand corrected. Had not really understood what the issue was about, out of only reading superficially. Shame on me! Rest of post fundamentally irrelevant now.
$ perl -MLWP::Simple -e 'print get "http://blazar.perlmonk.org/"'
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-U
+S">
<head><title>Michele "blazar" Dondi's home @ Perlmonk.or
+g</title>
<meta name="keywords" content="Michele, Dondi, blazar" />
<meta name="robots" content="index,follow" />
</head><body><h1>Michele "blazar" Dondi's home @ Perlmon
+k.org</h1>
<h2>News</h2>
<p>I've always been half hearted about blogs. I still am. Well, ye
+ah sort
of. However I've started writing one, with a much irregular freque
+ncy, but
who cares? Of course, it <em>had</em> to have <code>perl</code> in the
domain name: in fact <a href="http://use.perl.org/~blazar/journal/">it
+'s at
use Perl</a>. And I'm writing more ore less anything that springs
+to mind.</p>
<h2>Old stuff</h2>
<p><small>(The following is all that was here before I added the secti
+on
above. Not much, eh?)</small></p>
<p>No, there's nothing here yet. You'll find something more, b
+ut not too much,
<a href="http://mosquito.scumm.it/~blazar/">here</a>.</p>
</body></html>
and
$ perl -MO=Deparse,-p -MLWP::Simple -e 'print get "http://blazar.perlm
+onk.org/"'
use LWP::Simple;
print(get('http://blazar.perlmonk.org/'));
-e syntax OK
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|