Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Filepointer of source file inside source filter

by bart (Canon)
on Oct 05, 2003 at 12:16 UTC ( [id://296688]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open SRC, "$source";
    open IDX, ">$source.offset";
    ...
    while(<SRC>) {
        print IDX pack 'N', tell SRC;
    }
    
  2. or download this
    use CGI;
    $source = $INC{'CGI.pm'};
    
  3. or download this
    my $line = 2990;
    open IDX, "$source.offset";
    ...
    open SRC, "$source";
    seek SRC, $offset, 0;
    print "Line $line is:\n", scalar <SRC>;
    

Log In?
Username:
Password:

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

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

    No recent polls found