Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: NEWBIE Brain Teaser #2, by nysus

by nysus (Curate)
on Apr 16, 2001 at 01:38 UTC ( #72704=note: print w/replies, xml ) Need Help??


in reply to Re: NEWBIE Brain Teaser #2, by nysus
in thread NEWBIE Brain Teaser #2, by nysus

As for Part B, which asks "why?"...reading perlsub will give you a better understanding of how to pass variables to a subroutine. If you scope :-) it out very closely you may be able to figure out the answer to Part B. However, if you have a copy of "Learning Perl" by merlyn handy, you may get a friendlier explanation for what this bit of code does.
  • Comment on Re: Re: NEWBIE Brain Teaser #2, by nysus