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:

  • java swing underline text
  • python file operation exception
  • selection structure examples in perl
  • program for ftp which create, transfer and delete file in java
  • java gui attributes
  • perl strip duplicate spaces
  • how to list prime numbers in a range using python
  • java how to println space
  • perl trim whitespace
  • perl selection examples

No comments yet.

Leave a Comment