Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by jdporter (Paladin)
on Nov 07, 2003 at 05:44 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://305233]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2024-04-19 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found