In what decate was it good practice introducing a dependency on an external module in order to get the exact same two substitutions hidden in a sub:
The same decade where abstracting operations behind a meaningful name made programs easier to understand. Compare:
# trim whitespace $string =~ s/^\s+//; $string =~ s/\s+$//;
... to:
trim( $string );In reply to Re^3: Pulling white space off before/after string?
by chromatic
in thread Pulling white space off before/after string?
by ecuguru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |