Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 scrutinizing the Monastery: (7)
As of 2019-06-18 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (82 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!