in reply to Re: Is silent use of $_ for empty argument lists reasonable for "shortcut" functions?
in thread Is silent use of $_ for empty argument lists reasonable for "shortcut" functions?
- Wyrd@strs = ( " a string ", " b string "); $s = " my string "; $a = trim($s); # $a gets the trimmed version of $s @b = trim(@strs); # @b gets trimmed versions of all strings in @strs trim($s); # trim $s in-place trim(@strs); # trim all @str in-place
|
|---|