That's because the backslash character is also the escape character.  If 
you want to print the string
$string (where $string is NOT a variable)
you write
print "\$string"; # prints $string

In your code below, you've escaped the closing quote, and therefore you 
don't tell Perl where the string ends.  To avoid this, you have to escape 
the backslash:
print "\\"; # prints \


At 15:18 06.07.2001 +0500, Berkeley Altiev wrote:

>my print '\'; string give me:
>Can't find string terminator "'" anywere befor EOF at ./file line 2.
>
>How i may print that symbol ? Perl running on Linux console.

Aaron Craig
Programming
iSoftitler.com

Reply via email to