in reply to help on reg ex
you can do:$a="export/home/test/great/great";
(that \z means 'the end of the string')$a =~ s#/great\z##; print $a; # prints "/export/home/test/great"
-- Joost downtime n. The period during which a system is error-free and immune from user input.
|
|---|