perl: script isn't printing to a file

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
I'm not sure what I'm doing wrong. If it prints to screen I get the output correctly, but it won't print it to my file. Any help?
 

Zugzwang152

Lifer
Oct 30, 2001
12,134
1
0
Originally posted by: n0cmonkey
When the partition is full, files don't get written to... :eek:

this would have been an important piece of information in the OP. :thumbsup:


16 minutes isn't bad for solving your own problem though...
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Zugzwang152
Originally posted by: n0cmonkey
When the partition is full, files don't get written to... :eek:

this would have been an important piece of information in the OP. :thumbsup:


16 minutes isn't bad for solving your own problem though...

16 minutes is waaaaay too long to notice a partition is full. I'll be taking measures to reduce that period of time as much as possible. ;)
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
my perl reference is at work :(

I think you need a special print statement to write it to a file? You reference above looks ok, but you need to fix the lower print statement?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: nweaver
my perl reference is at work :(

I think you need a special print statement to write it to a file? You reference above looks ok, but you need to fix the lower print statement?

No, it's right. It's working now. Probably always was. :eek:

IIRC, perl buffers writes. It looks like that buffer is larger when the dataset is larger. Previously, I had been working with much smaller data sets, and when I tested it with a smaller data set my immediate gratification sensor triggered properly.

I let my script run for a while, went for a quick walk, and there's data in the output file now. I've been beating myself up for nothing. :p
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: nweaver
just gotta say, I love perl (even in all it's oddities)

It cut down the amount of time this work required by DAYS. And it'd be a hell of a lot faster if I did things correctly the first time too! :p
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Most example scripts I've seen set this variable so that screen updates make it out immediately.

From 'man perlvar'