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

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



>>>>> "VB" == Vicki Brown <vlb@cfcl.com> writes:

  VB> Here's the code... this is it... just these two lines.
  VB> Why doesn't this generate a syntax error?

  VB>     } BEGIN {
  VB>       @ARGV = <*m*>;

being in the quiz, i wish i had gotten this bonus question as i knew the
answer, but our opponents got it (wrong IIR). abigail invented this
idiom with the shortest line counter one liner:

perl -ple '}$_=$.;{'  foo 

as i see this thread is long i won't spoil that one either.

uri

-- 
Uri Guttman  -----------------  SYStems ARCHitecture and Software Engineering
uri@sysarch.com  ---------------------------  Perl, Internet, UNIX Consulting
Have Perl, Will Travel  -----------------------------  http://www.sysarch.com
The Best Search Engine on the Net -------------  http://www.northernlight.com
"F**king Windows 98", said the general in South Park before shooting Bill.

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