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

Re: [FWP] From the Perl Conference 3.0 Perl quiz (1)



On Wed, Aug 25, 1999 at 09:42:17AM -0700, Vicki Brown wrote:
> If you're gonna reply with a spoiler, mark it a spoiler.
> 
> If you were there, don't jump in so fast :-)
> 
> Here's the code... this is it... just these two lines.
> Why doesn't this generate a syntax error?
> 
>     } BEGIN {
>       @ARGV = <*m*>;
> 
> Or, as Jon Orwant said - there were no modules in use, no other lines in
> the script. A print statement inserted anywhere, before or after or between
> these two lines would print.

I don't think that's quite what Jon said.  There _were_ other lines in the
script -- otherwise it wouldn't have done anything useful.  Rather, the
code shown was the _last two lines_ of the script.


Ronald

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe