point taken, i was just illustrating *a* way to go... wrote an idea down in
about a minute.
note the 'try something like' rather then 'here is the only way to do this'
and yes, it matches 'foosrc'.. there other attributes on can put in an img
tag
but rather then get in a completely pointless fla
On Fri, Jul 20, 2001 at 02:45:52PM +0200, Jos I. Boumans wrote:
> ### $res->content is the return value of a LWP request
> my @images = $res->content =~ |
images... remmeber you pobably
> >need binmode set if you want to do something with them in perl
> >}
> >
> >hth
> >Jos Boumans
> >
> >
> >- Original Message -
> >From: "Sparkle Williams" <[EMAIL PROTECTED]>
> >To: <[E
I apologize, but I'm a real beginner and thus must ask...what is a sanity
check and better yet, how do I add one?
>From: "Jos I. Boumans" <[EMAIL PROTECTED]>
>To: "Sparkle Williams" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>Subject: Re: perl
20, 2001 2:30 PM
Subject: perl and internet files
> I have written a perl script that retrieves in html style text from
internet
> files. I need to also retrieve the images that accompany the text. Is
there
> a module I can use to do this? I also was wondering, if I desired to open
I have written a perl script that retrieves in html style text from internet
files. I need to also retrieve the images that accompany the text. Is there
a module I can use to do this? I also was wondering, if I desired to open
the files retrieved in a browser window, is there any way I can wri
why yes there is... i wrote a little module for perl that does just that.
basicly, you pass the module a filehandle, it strips out all hte html
(leaving the links in the file intact however) and passes back a string
a sample script is also available. look at http://japh.nu/index.cgi
the site is
On Thu, Jul 19, 2001 at 09:51:14AM -0400, Sparkle Williams wrote:
> I just wrote a perl program that retrieves files of type http:// and ftp://
> from the internet. When it retrieves the files it
> comes up in the html syntax of head, body, text etc. Is there any way I can
> write an addition t
Is there a way to rip the HTML tags with multi-line HTML tags?
>From: "Sascha Kersken" <[EMAIL PROTECTED]>
>To: Sparkle Williams <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: perl and internet files
>Date: Thu, 19 Jul 2001 16:07:01 +0200
>
&
nt of
and tags by line breaks might be something like:
#!/usr/bin/perl -w
open HTMLFILE, ")
{
chomp;
s/]+>/\n\n/gi;
s/]+>/\n/gi;
s/<[^>]+>//g;
print;
}
- but be careful! This won't work when there are multi-line HTML tags!
Sascha
--
>Von: "Sparkl
Good morning!
I just wrote a perl program that retrieves files of type http:// and ftp://
from the internet. When it retrieves the files it
comes up in the html syntax of head, body, text etc. Is there any way I can
write an addition to my script that will cause
the text to come up in it's form
11 matches
Mail list logo