There's more than one way to do things | |
PerlMonks |
Re: Can anyone figure this out?by chipmunk (Parson) |
on Jun 04, 2001 at 06:35 UTC ( [id://85396]=note: print w/replies, xml ) | Need Help?? |
It turns out that this is as simple as it sounds. s///g returns the number of matches found. The replacement in the substitution here is entirely irrelevant, as are the three /e modifiers.
The subroutine could be rewritten as: It took me a little while to figure it out, though. :)
In Section
Obfuscated Code
|
|