Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: extract range from array of data

by BrowserUk (Patriarch)
on Dec 26, 2015 at 12:04 UTC ( #1151190=note: print w/replies, xml ) Need Help??


in reply to extract range from array of data

Use the flip-flop operator:

@d = grep{ /^start$/ .. /^end$/ } <hFile>;

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: extract range from array of data
by QuillMeantTen (Friar) on Dec 26, 2015 at 12:45 UTC

    BrowserUK you just blew my mind, thanks for the tip!

Re^2: extract range from array of data
by theleftright (Novice) on Dec 26, 2015 at 13:06 UTC
    thanks (y) perfect.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2022-06-28 05:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (90 votes). Check out past polls.

    Notices?