develooper Front page | perl.perl5.porters | Postings from November 2000

Re: [ID 20001130.012] Can't do '\'?

Thread Previous
From:
Casey R. Tweten
Date:
November 30, 2000 13:36
Subject:
Re: [ID 20001130.012] Can't do '\'?
Message ID:
Pine.OSF.4.21.0011301634410.32044-100000@home.kiski.net
Today around 4:30pm, Ronald J Kimball hammered out this masterpiece:

: On Thu, Nov 30, 2000 at 04:24:59PM -0500, Casey R. Tweten wrote:
: > 
: > I expected this to work too but:
: > 
: > [ctweten@ctweten ctweten]$ perl -le "print '\\'"
: > Can't find string terminator "'" anywhere before EOF at -e line 1.
: > 
: > This is behavior in bleadperl, 5.6 and 5.5.3  I would consider:
: > 
: >   print '\\';
: > 
: > to be broken.
: 
: That's an issue with your shell, which is converting the double backslash
: to a single backslash before executing perl, because you're using a
: double-quoted string on the command line.  Try switching the quotes around.

Quite right, my bad.

-- 
print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'crt@kiski.net',site=>
'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n";
print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig};
my $VERSION = '0.01'; #'patched' by Jerrad Pierce <belg4mit at MIT dot EDU>


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About