Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Parsing to get server info

by l2kashe (Deacon)
on Jul 15, 2003 at 14:29 UTC ( [id://274428]=note: print w/replies, xml ) Need Help??


in reply to Re: Parsing to get server info
in thread Parsing to get server info

As an add on here. maybe
$line =~ m{^https?://([^/]+)}; $server{$1}++; for ( keys %server ) { print "$_ : $server{$_}\n"; }
This way it will also catch https URLs. Though using a module as recommended below is probably the best way.


MMMMM... Chocolaty Perl Goodness.....

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://274428]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-03-29 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found