There's more than one way to do things | |
PerlMonks |
Re^2: port a function from phpby oiskuu (Hermit) |
on Dec 10, 2013 at 17:22 UTC ( [id://1066474]=note: print w/replies, xml ) | Need Help?? |
Well... Consider this perl code for example:
This returns the common prefix length for two given strings. Except when it fails, that is. Which happens when NUL's are present in the (longer) string. A case that has actually bitten me before. The PHP semantics would be a win sometimes.
In Section
Seekers of Perl Wisdom
|
|