Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Perl: remove whitespace of a String

Perl: remove whitespace of a String

sub trim
    my @out = @_;
    for (@out) {
    return @out == 1
              ? $out[0]
              : @out;
print trim('Welcom to home  ');

Users who found this page were searching for:

  • perl trim whitespace
  • java how to println space
  • selection structure examples in perl
  • java swing underline text
  • perl using external program
  • perl iterate over two lists
  • removing whitespace from a string in perl
  • perl selection examples
  • python creating a button
  • how to list prime numbers in a range using python

No comments yet.

Leave a Comment