On Thu, 16 Aug 2012 10:55:03 +0200
Gergely Buday <[email protected]> wrote:

> Notice that in order to put a literal backslash into a perl string,
> you should escape it. In your original program, you have put a \b, a
> bell character into the string.

Actually, "\b" is the backspace character. The bell or alarm character
is "\a". You can this in the output. It prints 'C:', then backs up one
character and prints 'uild.txt', giving the result:

    Cuild.txt

For details, see `perldoc perlop` and search for /Quote and Quote-like
Operators/.

On Thu, 16 Aug 2012 14:41:04 +0530
midhun <[email protected]> wrote:

> $cs_project = "C:\build.txt"; ## In Double quotes takes the string as
> C:build.txt.since its an escape character

The string is "C:\x{08}uild.txt" (see above).


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

        _Perl links_
official site   : http://www.perl.org/
beginners' help : http://learn.perl.org/faq/beginners.html
advance help    : http://perlmonks.org/
documentation   : http://perldoc.perl.org/
news            : http://perlsphere.net/
repository      : http://www.cpan.org/
blog            : http://blogs.perl.org/
regional groups : http://www.pm.org/

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to