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

Re: Sorted Code

Thread Previous | Thread Next
Piers Cawley
December 14, 2001 12:33
Re: Sorted Code
Message ID:
Philippe 'BooK' Bruhat <> 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.


   "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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About