Somewhere, Something Incredible Is Waiting To Be Known !!!
(Move to ...)
Home
▼
Friday, 15 March 2019
perl script removes the unnecessary leading and trailing commas from the input provided
sub Fuctionname
{
my $temp=trim(<input>);
$temp=~s/^\,|\,$//g;
$temp=~s/,+/\,/g;
return $temp;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment