jefe has asked for the wisdom of the Perl Monks concerning the following question:

I was chatting earlier and figured out my problem, so I thought I'd post the solution here. Thanks to tye for helping me out.

I was stripping trailing space from directories in 10.4 with:
$directory =~ s#/\s$##;

My scripts didn't work in 10.5 and it's because the trailing / at the end of the path doesn't exist in 10.5 like it does in 10.4.

I changed my code to:
$directory =~ s/\s$//;
Problem solved.

Thank you tye.

Replies are listed 'Best First'.
Re: 0S10.4 vs OS10.5 and perl
by Fletch (Bishop) on May 01, 2008 at 12:48 UTC

    [2. Trade] [Fletch] WTB [Smidgen of Context]

    But anyhow that's obviously a much better solution than simply making the trailing slash optional s{/? \s* $}{}x and having something that'd work on both versions . . .

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.