Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Files not altered

by balakrishnan (Monk)
on Jan 05, 2009 at 05:07 UTC ( #734107=note: print w/ replies, xml ) Need Help??


in reply to Files not altered

Node : File contents not updated properly
refer this node, to get to know how to select the file handles using the select() function.
Best regards,
balakrishnan.


Comment on Re: Files not altered
Re^2: Files not altered
by wol (Hermit) on Jan 05, 2009 at 14:38 UTC
    I had a look at the linked node, but I can't see the connection with this question (other than superficially "content not appearing in files"). Could you explain further?

    --
    use JAPH;
    print JAPH::asString();

      It may not be exactly related to your requirement.

      I'm trying to convey that when you see that file is not updated, there may be a case that the file handle not selected for automatic flushing. In such a case, you can use the select to make the file updation proper.

      This is just to give you some clarification in the "files not altered" matter.
      It isn't relevant (yet) since you aren't writing to a file in your example. Once you do get that straightened out, autoflush can be useful if you are trying to look at your output file while the program is still running.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-11-25 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (148 votes), past polls