Skip to Content

tutorial Syndicate content

Pronouns in Perl

Dave Sherohman's picture

Cross-posted from dream.in.code:

Quote:


That bit of code works beautifully. Thank you ever so much!

I do have a question regarding it. That default variable you use, $_, where was it defined? That is, how does it recognize the scalars within @stack, assign them to $_, and then print them? Seems like a really handy sort of tool, but I'm unclear as to why this works.

That's a big question which goes straight to the heart of Perl and plays a big role in why Perl is such a love-it-or-hate-it language.