Re: RFC 51 (v2) Angle brackets should accept filenames a
[email protected] (Chaim Frenkel) 09 Aug 2000 10:42:03 -0400
| Newsgroups | perl.perl6.language.io |
|---|---|
| Message-ID | <[email protected]> |
What does $foo = <"filename">; # 1 $bar = <"another">; $gaz = <"filename>; # 2 Does #2 get the second line or the first? Can the <> contain a function? Your example seems to indicate that it can. But if it is hard for me to parse visually, I'm not sure how easy it would be for the parser. <chaim> >>>>> "PRL" == Perl6 RFC Librarian <[email protected]> writes: PRL> =head1 ABSTRACT PRL> In scalar context, the next line (or file) is read from the first item PRL> in LIST. When the first item returns undef, the next item is read. PRL> When there are no more items left, undef is returned. PRL> Inside a while loop (or the conditional section of a for(;;) loop), $_ PRL> is assigned to the next line (or file) and tested for defined-ness. -- Chaim Frenkel Nonlinear Knowledge, Inc. [email protected] +1-718-236-0183