Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: 2-strange side effect with FH

by blm (Hermit)
on Oct 22, 2002 at 11:52 UTC ( [id://207041]=note: print w/replies, xml ) Need Help??


in reply to Re: 2-strange side effect with FH
in thread 2-strange side effect with FH

Here is what happens for me when I run that script without editing

C:\>"C:\Documents and Settings\blm\Desktop\test.pl" ##open (TEMPO, "<c:\\winnt\\temp\\hash.tmp"); while (<TEMPO>) { print; } <then a lot of blank lines with some "funny ascii characters" interspe +rsed>

For more information about what the above post indicates might be happening read perldoc seek. It says:

On some systems you have to do a seek whenever you switch between reading and writing. Amongst other things, this may have the effect of calling stdio's clearerr(3). A WHENCE of 1 (SEEK_CUR) is useful for not moving the file position:

seek(TEST,0,1);

Updated: Include the output of the posted sample so everyone can see.

--blm--

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-24 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found