Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out-of-date perltrap entry #869

Closed
p5pRT opened this issue Nov 18, 1999 · 1 comment
Closed

Out-of-date perltrap entry #869

p5pRT opened this issue Nov 18, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Nov 18, 1999

Migrated from rt.perl.org#1799 (status was 'resolved')

Searchable as RT1799$

@p5pRT
Copy link
Author

p5pRT commented Nov 18, 1999

From mjtg@cus.cam.ac.uk

=item * Discontinuance

In Perl 4 (and versions of Perl 5 before 5.004), C<'\r'> characters in
Perl code were silently allowed, although they could cause (mysterious!)
failures in certain constructs, particularly here documents. Now,
C<'\r'> characters cause an immediate fatal error. (Note​: In this
example, the notation B<\015> represents the incorrect line
ending. Depending upon your text viewer, it will look different.)

  print "foo";\015
  print "bar";

  # perl4 prints​: foobar
  # perl5.003 prints​: foobar
  # perl5.004 dies​: Illegal character \015 (carriage return)

Mike Guy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant