Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: EOF character

by chargrill (Parson)
on Sep 25, 2006 at 06:34 UTC ( [id://574684]=note: print w/replies, xml ) Need Help??


in reply to EOF character

Try this:

print $fh chr 4;

Note, not tested, but I lifted the ASCII code for ^d from here: http://www.cs.tut.fi/~jkorpela/chars/c0.html. HTH. Also assumes you want to print to a filehandle $fh. If your filehandle is named differently, adjust to suit.



--chargrill
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://574684]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-06-13 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.