Can someone help with build a simple module with one function in it?
Can't seem to get anythign working.

I guess something like:

test.pl
-------
use mystuff;

print mystuff::trim($username);

mystuff.pm
----------
#do i need any declaration line here
#is sub here or what?
#and where do i put this pm file?

sub trim
{ my $z = $_[0];
  $z =~ s/^\s+//;
  $z =~ s/\s+$//;
  return $z;
}

thanks,
-rkl

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to