in reply to Re^2: problem opening file
in thread problem opening file

hello monks
I tried using // because single / will be an escape character
but it did not work even after doing that
Unable to open file:No such file or directory at C:\Perl\hprd.pl line 14.
is there any way to open files from a subdirectory

Replies are listed 'Best First'.
Re^4: problem opening file
by Fletch (Bishop) on Jan 10, 2008 at 19:29 UTC

    No, a two slashes are . . . two slashes. Two backslashes make a single slash because the first escapes the later. It makes a difference which way they're pointing because they're different characters. Read the section on 'quotelike operators' in perlop.

    perl -le 'print "// \\"'

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