Your Open Source

 
Related Links

CGI - PERL

Trim function in CGI-PERL

Trim() function in perl:-

The following function to trim the strings,
sub trim($)

{
my $string = shift;
$string =~ s/^\s+//;
$string =~ s/\s+$//;
return $string;
}

  • hits 57820
  • datetime Aug 10 09 07:05:59
  • author Sekar
  • rating

Rating : 12345

Comments

No Reply..

Quick Reply or Comments

Preview
Your Name:
Your Reply :
<> is a code tag
Enter the verification code: