RE: What does "}{" mean?

Jonathan Weed <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
> What does the construct "}{" mean?

 From perlrun:

"-p causes Perl to assume the following loop around your program, which 
makes it iterate over filename arguments somewhat like sed:


   LINE:
     while (<>) {
...# your program goes here
     } continue {
print or die "-p destination: $!\n";
     }


"
The closing brace indicates that the while loop is over, and the opening 
brace starts a new, bare block to which the "continue" is attached.


-- 
http://www.justicepoetic.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.