[Pdx-pm] file processing - from to delimiters

Michael Rasmussen mikeraz at patch.com
Sun May 16 00:21:24 CDT 2004


I have this memory that there's some perl construct of the form

KEYWORD ( RE1 .. RE2 ) {
	code;
}

where (for instance) reading a file the code will only be executed 
after RE1 has been encountered and before RE2 has been encountered.
for instance 

KEYWORD ( /<head>/i .. /<\/head>/i ) {
	process headers for web page;
}

Am I remembering a dream or is this a feature of the language?
If it is a feature, what is the keyword?

It's not something I'm finding in `man perlsyn` or `man perlfunc`


-- 
    Michael Rasmussen, Portland Oregon  
  Be appropriate && Follow your curiosity
 http://meme.patch.com/memes/BicycleRiding
   Get Fixed:  http://www.dampfixie.org
  The fortune cookie says:
Everyone hates me because I'm paranoid.




More information about the Pdx-pm-list mailing list