[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Frontier/MacPerl dictionary



At 10:24 AM -0400 7/7/98, Paul J. Schinder wrote:
>
>Like all such lists, the problem is that you'll never see those things
>that can be done in Perl and not in Frontier and vice versa.

Is that a problem, or a feature? :-)

>  Some of
>the Perl also seems a little constrained.

Shouldn't someone be mentioning that *all* of his examples should be
checking the return value of open?

>  For example, if I wanted to
>read an entire file into a variable, your way would work well enough,
>but I might do $s = join("",<FILE>); and not have to muck around with
>$/. Or put the whole thing in a block so I could use local:
>
>{
>    local ($/) = undef;
>    $s = <FILE>;
>}

Is the join going to be faster than the other?  Or just better because it's
not mucking with $/ ?  (what are good typographical rules for punctuation
when ending sentances with perl special variables?  Has Larry written a
treatise on this?)

-jeff



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch