in reply to Re^4: map and regexp. An newbie question
in thread map and regexp. An newbie question
Yep, you're correct.
I created a test snippet, and uploaded it to my Linux computer (where I have 5.14 running) via sFTP, since the /r modifier isn't available on my Windows/Strawberry Perl 5.12 computer. Then I ran it by SSH'ing into the computer. And in so doing, mistakenly uploaded and tested a version that I hadn't added the /r modifier to. So when I thought I was checking, I wasn't.
The docs.... And here I'm usually the one to have them practically memorized.
Good job!!! Great humor.
It reminds me of one of the great quotes from Programming Perl. The topic of discussion actually was what various Perl functions return in list and scalar context, which seems quite fitting to this conversation.
"In general, Perl functions do exactly what you want, unless you want consistency."
-- Larry Wall; Tom Christiansen; Jon Orwant. Programming Perl, 3rd Edition (Kindle Locations 15841-15842). O'Reilly Media.
Dave
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: map and regexp. An newbie question
by anneli (Pilgrim) on Oct 19, 2011 at 07:50 UTC | |
by davido (Cardinal) on Oct 19, 2011 at 08:01 UTC |