Re: What does "}{" mean?

Uri Guttman <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
>>>>> "K" ==   <[email protected]> writes:

  K> I figured that much, but then I'm left with interpreting a construct
  K> of the form:

  K>    while(defined($_ = <ARGV>)){}{$_ = "foo\n"}continue{print $_}

  K>                               ^^
  K>                               ??

  K> I didn't think such a construct would be legal.  I'm not sure what it
  K> means.

you have it backwards from the string in the subject. replace that with
}{ and it works. see all the other responses.

uri

-- 
Uri Guttman  ------  [email protected]  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org
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.