in reply to Comparing directories

no, Perl comes with no such troubles. But see yourself. Type-or-copy

perl -we '$dpage = "/****/****/*********/public_html/weapons"; $REPOSIT = "/****/****/*********/public_html/weapons"; print "Hooray\n" if ( $dpage eq $REPOSIT )' # on a unix shell

or in a Windows/DOS-box:

perl -we "$dpage = '/****/****/*********/public_html/weapons'; $REPOSIT = '/****/****/*********/public_html/weapons'; print qq/Hooray\n/ if ( $dpage eq $REPOSIT )"

Considering your problem: the values actually differ.

Sören

Replies are listed 'Best First'.
Re: Re: Comparing directories
by TomDLux (Vicar) on Mar 10, 2004 at 21:51 UTC

    Do they differ? It prints 'Hooray' for me.

    Personally, I would suspect the comparison never gets executed, that some outer condition ensures that code is not invoked.

    I would urge using Data::Dumper, non-interactively, and of the debugger flag, -d ( or better yet, emacs and M-x perldbg ).

    --
    TTTATCGGTCGTTATATAGATGTTTGCA