Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Reopen a closed file for read

by Marshall (Canon)
on Apr 30, 2012 at 20:35 UTC ( [id://968149]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # open intermediate file for pass of XML file
    open (INTFILEout, '>', $intfile) or
    ...
    ### is anything in INFILEout at this point? If so, how 
    ### would the parser know how to put it there?
    ### stop the code here and cat or type the contents of INFILEout
    
  2. or download this
    while ($linein = <INTFILEin>){
       chomp $linein;
       print FMTFILE "$linein\n";
       }
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    print "$x";
    
    #Use of uninitialized value $x in string at C:\TEMP\testunless.pl line
    + 8.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found