Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Many matches to an array

by ciryon (Sexton)
on Jul 15, 2004 at 11:38 UTC ( [id://374614]=note: print w/replies, xml ) Need Help??


in reply to Re: Many matches to an array
in thread Many matches to an array

How do I put entire content into an array?

Replies are listed 'Best First'.
Re^3: Many matches to an array
by hsinclai (Deacon) on Jul 15, 2004 at 11:53 UTC
    maybe start with

    my @content = get_content($url); foreach my $var ( @content ) { next if $var =~ / undesirable regex /; $var =~ / your regex / && do something; .. }
    I think this is what Paulster2 means.. at least now the @content you fetched is going to get processed line by line..

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-23 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found