#perl - Sun 18 Mar 2007 between 00:00 and 00:27

NY Lost Funds



eightbitbastardalamar: lots of things are generated, and it may have already have been generated, i don't know yet as i haven't verified this
killer_open (SF, ">$filename") or die "cannot open $filename: $!<br>"; print SF "$scoredata\n"; close SF; ...... when I print $filename it's the fullpath and it's an apache owned directory, this was working, now no file is being created and no error is
what am I missing?
$scoredata has value, even if it didn't I should get an empty file.
Khisanthwell I guess the previous question of what is wrong with using File::Temp still applies ..
thrigkiller_: no error? even when you strace or ktrace the process to discover what it is doing?
killer_thrig: like "strace ./cgi.pl" ?
that spews a few screens.. reading now
thriglook for your filename
killer_Khisanth: so you think it may be an issue with File::Temp?
I just want File::Temp to identify a name that my app can write to, maybe I should "touch" the file when File::Temp initialy identifies the name
Khisanthwell I am assuming there is a reason that File::Temp tells you not to do that
thrigrace conditions and whatnot
killer_thrig: I have several like this .... open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory
thrigis that normal? what happens near the attempted file open and write?
details lacking on this "no error" problem...
killer_ok.. I eliminated $filename var and hardcoded /tmp/filename.txt and it still will not open/create the file, directory is writable by apache.. sheesh
thrigwhat happened to /tmp? everything on Unix should be able to write there.
PerlJamkiller_: Have you pasted your actual code somewhere?
thrigand why will it not open/create the file? No error again? At all?
killer_disregard that last comment. I had "$/tmp/filename.txt" .. removed the "$" and the file was created
PerlJamUnexplained behavior is almost always a pebkac
thrigtip: always use open my $fh, '>', $filename or die ...
killer_PerlJam: well I was working in small segments pasting them then incorporating into the main cgi.. lemme paste the whole thing. one moment to sanitize paths and DB/user/pass
thrigavoids needless and Highly Unexpected problems
PerlJamthrig++ (saves me the trouble of mentioning it :)
thrigI've given that lecture some 10 times now at work. I think they're catching on.
f00li5hthree cheers for $/ !
NOTevilhip hip hip
f00li5h'orray
NOTevil;)
killer_great .. get "paste unacceptable error
http://www.paste.me.uk/435.html
krazykI need to parse ingredient lists from loosely-formed recipes (of the epicurean sort). How would my fellow Perl peers approach this? Any modules of particular interest?
PerlJamkrazyk: Carefully. From the side.
f00li5hkrazyk: i'd go with a pincer movement, they never see that coming
thrigcrabs do. All the time.
and lobster.
krazykOxo::Tongs
that should help me :)

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 

IrcArchive

NY Lost Funds