> From: Jeff Pinyan [mailto:jeffp@crusoe.net] > Sent: Wednesday, March 15, 2000 13:09 > To: Larry Rosler > Cc: fwp@technofile.org > Subject: RE: [FWP] beauty vs. brains > > > On Mar 15, Larry Rosler said: > > >> { local $/, $file = <FILE> } > > > >No one has pointed out that the commas in your code should be > >semicolons. That suppresses some warnings about unparenthesized lists > >for 'local', but doesn't affect the results. > > Where (what version of Perl) do you get these warnings in? I use a comma > because it's weaker than local(), and because it's "fun". (Useless use of > double quotes there, when single quotes would have done, I'm sure.) #!/usr/bin/perl -w use strict; my $f; local $/, $f = <DATA>; __END__ Parens missing around "local" list at e:\Test\foo.txt line 6. This is perl, version 5.005_03 built for MSWin32-x86-object (with 1 registered patch, see perl -V for more detail) Copyright 1987-1999, Larry Wall Binary build 522 provided by ActiveState Tool Corp. http://www.ActiveState.com Built 09:52:28 Nov 2 1999 ALSO: This is perl, version 5.005_03 built for PA-RISC1.1 -- Larry Rosler Hewlett-Packard Laboratories http://www.hpl.hp.com/personal/Larry_Rosler/ lr@hpl.hp.com ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe