Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Re: Re: FreeBSD reading/writing workaround?

by hdp (Beadle)
on Apr 26, 2001 at 08:39 UTC ( [id://75714] : note . print w/replies, xml ) Need Help??

in reply to Re: Re: FreeBSD reading/writing workaround?
in thread FreeBSD reading/writing workaround?

I've taken your code and run it unchanged on my machine except for the addition of this line (push @dat, $dat[rand(@dat)]) just before the second seek. It does what I'd expect it to, reading in the file and writing it out again with a random line from the file appended.

I suggest you show the rest of your code, even though you don't think the problem lies there.