in reply to Re: Re: Bug in 'strict'??
in thread Bug in 'strict'??

What is $CGI::SL? Might it be different in "use strict"?

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: $CGI::SL
by Anonymous Monk on Apr 05, 2001 at 17:09 UTC
    IIRC
    $CGI::SL represents the path separator for the current OS
    I think you can also have $CGI::OS to identify the OS
Re: Re: Re: Re: Bug in 'strict'??
by Jouke (Curate) on Apr 05, 2001 at 16:59 UTC
    $CGI::SL is the value of the 'slash' (/ on unix, \\ on DOS, etcetera)...it is used to only find the last part of a file/path combination (the original filename)

    But I've tried if $localfilename gets a value at all. It does. If I print $localfilename after the assign statement, it perfectly represents what I want.
    But right at the moment 'open' is called, it loses it's value. And only when I use strict.

    Jouke Visser, Perl 'Adept'