in reply to Re: Re: is "/" a special character when using substrings??
in thread is "\" a special character when using substrings??

I'm going to assume that this is true of at least 5.6 and beyond, or that I'm finding a bug here:
C:\>perl -v This is perl, version 5.005_02 built for MSWin32-x86-object ... C:\>perl print 'hello\n'; print "hello\n"; ^D hello\nhello C:\>

Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Replies are listed 'Best First'.
(tye)Re2: is "/" a special character when using substrings??
by tye (Sage) on Jun 19, 2001 at 02:15 UTC

    I said \ is special inside single quotes. I didn't say that \n means newline inside of single quotes. Try this:

    print '\\'; print '\'';

    Update: The canonical test for whether \ is special is to see if \\ ends up giving you one \ or two.

            - tye (but my friends call me "Tye")