Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Help on parsing an array

by Wonko the sane (Deacon)
on May 13, 2003 at 13:42 UTC ( #257726=note: print w/replies, xml ) Need Help??

in reply to Help on parsing an array

There are at least 101 ways to do this. Here is one of them.
my @urls = map { /href=([^\n\r]+)/ } @strings;

I would wonder if at a higher level your task may be better suited for one of the HTML Parser modules though.:-)


Replies are listed 'Best First'.
Re: Re: Help on parsing an array
by Anonymous Monk on May 13, 2003 at 13:58 UTC
    i used they way u showed me to , is there a way to get rid of the "" that would be really wonderful here is the output as i am getting it "/forwardBookmark.jsp" "/search/searchhelp.jsp" thanks again for ur help
Re: Re: Help on parsing an array
by Anonymous Monk on May 13, 2003 at 14:01 UTC
    got the quotes i was just playing with it and figured it out thank you very much for ur help

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://257726]
[talexb]: Nice article on Perl by Ovid on TechBeacon: https://techbeacon .com/perl-not-dead -it-was-early-web- novices-gave-it- bad-name

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2017-09-19 17:56 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (226 votes). Check out past polls.