Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Question about using chomp and other functions together
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Dr.Ruud, post: 4869488"] I use shift only if changing @_ is profitable. my ($string) = @_; s/\s+\z//, s/\A\s+// for $string; No need for chomp, because trim() already removed all whitespace at both ends. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Question about using chomp and other functions together
Top