Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: File Indexing program

by starbolin (Hermit)
on Jun 25, 2008 at 19:54 UTC ( #694033=note: print w/replies, xml ) Need Help??

in reply to File Indexing program

$i was being clobbered as psini pointed out but this was only one major problem. The second problem is that your filehandle 'DIR' is getting clobbered. I think that the program still is not working correctly. To demonstrate:

open FH, "<foobar" or die; my @stats = stat FH; print "First inode ", $stats[1], "\n"; { open FH, "<foo" or die; my @stats = stat FH; print "Second inode ", $stats[1], "\n"; } @stats = stat FH; print "First inode ", $stats[1], "\n"; # FH has been clobbered. __END__ .... First inode 683751 Second inode 684162 First inode 684162

s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://694033]
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: (3)
As of 2022-10-02 06:26 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (7 votes). Check out past polls.