develooper Front page | perl.fwp | Postings from December 2001

Re: Sorted Code

Thread Previous | Thread Next
From:
Piers Cawley
Date:
December 14, 2001 12:33
Subject:
Re: Sorted Code
Message ID:
m2heqt1rq1.fsf@bofh.org.uk
Philippe 'BooK' Bruhat <Philippe.Bruhat@free.fr> writes:

[...]
> You can test the embedded ^D stuff with this file:
>
> print "ok";
> ^D  <- embedded Ctrl-D: one char. Use ^V^D to input this in vi.
> print "nok";
>
> $ perl file
> ok

And, as those of use who have been trawling the docs in search of,
ahem, interesting corners will be aware, ^D in the middle of a file is
treated like __END__, except it doesn't seem to let you get at the
<DATA> filehandle. See perldoc perldata for details.

-- 
Piers

   "It is a truth universally acknowledged that a language in
    possession of a rich syntax must be in need of a rewrite."
         -- Jane Austen?

Thread Previous | Thread Next


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