construct for block scans

  • Thread starter satyanandam.gullapudi
  • Start date
S

satyanandam.gullapudi

I am trying to scan multi line data from a text file for certain blocks
among others. There is some kind of loop construct in perl with
implicit state variable. The one where you specify a matching criteria
for block begin and matching criteria for block end. Can anyone give
the usage ?
 
U

usenet

There is some kind of loop construct in perl with implicit state variable.

I don't know what that means.
The one where you specify a matching criteria for block begin and
matching criteria for block end.

Do you mean a "regular expression?"

perldoc perlre
perldoc -q "matching over more than one line"

Or do you mean parsing between matching/nesting tags?

perldoc -q 'How do I find matching/nesting anything'
 
X

xhoster

I am trying to scan multi line data from a text file for certain blocks
among others. There is some kind of loop construct in perl with
implicit state variable. The one where you specify a matching criteria
for block begin and matching criteria for block end. Can anyone give
the usage ?

It sounds like you want ".." in a scalar context. See perldoc perlop,
it provides both documentation and examples.

Xho
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top