[LWN Logo]

Subject: Re: quiz for perl professionals
From: Uri Guttman <uri@sysarch.com>
Date: 10 Jun 1999 17:03:24 -0400

>>>>> "KG" == Kiriakos Georgiou <kgnews@olympiakos.com> writes:

  KG> How do you find the length of an array?

measure it with a scalar ruler.

  KG> In the context of regular expressions, what does \S+ stand for ?

that would be telling. i am not a regex, i am a free man!!

  KG> How would you count the number of words in a string?
  KG>   (split it and use scalar context on the array)

1, 2, 3, 4 ....

  KG> What does 'eval' do?

the opposite of gud. i wish more perl hackers worked for gud than eval.

  KG> Why wouldn't you want to put an eval in a loop?

because what eval goes around, comes around.

  KG> How would you get around the problem in the previous question?

nail your other foot to the floor.

  KG> What will    $_ = eval 'sub { print @_; }';   print?

who cares. the world will be a cold lifeless rock in 5 billions years. :-(

  KG> what does it do?

what does what do?

  KG> what will  &$_(1,2,3);   do?

do-be-do-be-do! (my condolences to mel torme'e family)

  KG> What is the difference between 'local' and 'my'?

my train is not the local, but the express.

  KG> How do you pass parameters by value?

do not pass parameters, do not collect $200.

  KG> How do you pass parameters by reference?

you don't refer to parameters, instead you imply you have them.

  KG> Can you describe what the taint mode does?  Can you name of any ways for
  KG> untainting tainted data?

always check if your oysters aren't tainted before taking their perls.


well, do i pass? i got a certificate from tekmorons the other day that
claims i am a master perl programmer. it was signed peronally by a laser
printer. i also bait lusers on this group so that makes me a master
baiter perl programmer. i also paid $2 for a certificate from perl
mongers at the last conference and it claims i am a certified perl quiz
hacker. so do i get the job?

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