#perl - Sun 18 Mar 2007 between 00:44 and 00:56



f00li5hmeow
killer_thrig: my small example is also broken http://www.paste.me.uk/437.html
thrigwhere's the die after the open? Why are you still using the dangerous FH and ">$filename" syntax?
killer_file not created and I ran that as root.. sheesh
f00li5hkiller_: why would you test a buggy script as root?
killer_: are you mad?
killer_die is missing from my small script
f00li5h: aparently so
f00li5hkiller_: open ... or die "Failed : $!"
killer_: $! tells you what's wrong
eval: open my $fh, '>', q/i'm in a chroot so it'll fail/ or die "Failed: $!"
buubotf00li5h: Error: Failed: Too many open files at eval line 1.
f00li5hkiller_: you see? " Too many open files "
killer_: that's what's in $!
killer_I added die.. and $! says nothing
no output
f00li5hkiller_: wanna paste again, with the die?
killer_: and did you use "or" or "||"?
killer_http://www.paste.me.uk/438.html
or
f00li5hkiller_: so you mean to say that it doesn't die?
killer_nope it doesn't die
f00li5hkiller_: then it is opening it
killer_: what makes getUniqueFilename() return something unique?
killer_it prints the /tmp/200703172348ARYT.txt and exits
thrigso, it works?
killer_f00li5h: File::Temp
f00li5hkiller_: File::Temp makes it unique?
killer_Randal was helping with this earlier..and it was working
thrigwhy did it stop working? What changed?
killer_could I have too many open files on my system?
f00li5hkiller_: so you mean to say that the file is not written?
thrigwhy would there be no error if the system had too many open files?
killer_I can do "vi test2.pl" and save and the file is there an has content
no file written.. not even an empty one
thrigthat seems to be a serious system problem
killer_and further I don't understand on my LONG script pasting why "&print startOutput; also stopped printing to the console
f00li5hkiller_: $fh = File::Temp->new()
that will open a temp file handle
that you can just print to

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 

IrcArchive