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

Re: Re: Re: desire to pass file handles by value

by jdporter (Canon)
on Nov 07, 2003 at 05:44 UTC ( #305233=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        package Tie::Scalar::FHPos;
        use FileHandle;
    ...
            my( $self, $pos ) = @_;
            $self->[0]->seek($pos,0);
        }
    
  2. or download this
    open F, "< foo.dat";
    our $pos;
    ...
     print "$pos: ", scalar(<F>);
    }
    print "$pos: ", scalar(<F>);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2020-07-09 05:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?