rsennat has asked for the wisdom of the Perl Monks concerning the following question:
hi all,
i need to add a character "/" at the end of the string, only if its missing.
rsennat
i need to add a character "/" at the end of the string, only if its missing.
thanksmy $string = "/tmp/check"; # append / at the end my $syring11 = "/tmp/check/"; # dont append /
rsennat
Back to
Seekers of Perl Wisdom