>>>>> "VG" == Vijay Gururaja <vijay.gurur...@oracle.com> writes:

  VG> Hi, All!
  VG>    The default character to escape is backslash (\). Is there any way
  VG> to redefine this and set it to any other character?

  VG>    For e.g. if I wanted to use '^' instead of '\'.
  VG>    *print "Hello World ^n";*

it can't be done as that is builtin syntax. the real question is why you
would want to do this? perl has several ways to make string literals and
one of them is probably what you want instead of changing the escape
char. and if you DID change it, you would confuse the hell out of
everyone who ever read your code. and remember, code is for people, not
computers! and code is for other people, not yourself! so don't go
looking for things to make it easier for you, look to write code to make
it easier for others to read it.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to