Is there a regular expression to remove a trailing slash in Perl

Posted by Zerobu on Stack Overflow See other posts from Stack Overflow or by Zerobu
Published on 2010-03-20T18:47:03Z Indexed on 2010/03/20 18:51 UTC
Read the original article Hit count: 291

Filed under:
|

Hello, I would like to remove a trailing slash from a string. For example if i have a string called $test = "test/". How would i remove the slash at the end?

© Stack Overflow or respective owner

Related posts about perl

Related posts about stripslashes