| eightbitbastard | alamar: 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. |
| Khisanth | well I guess the previous question of what is wrong with using File::Temp still applies .. |
| thrig | killer_: 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 |
| thrig | look 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 |
| Khisanth | well I am assuming there is a reason that File::Temp tells you not to do that |
| thrig | race 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 |
| thrig | is 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 |
| thrig | what happened to /tmp? everything on Unix should be able to write there. |
| PerlJam | killer_: Have you pasted your actual code somewhere? |
| thrig | and 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 |
| PerlJam | Unexplained behavior is almost always a pebkac |
| thrig | tip: 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 |
| thrig | avoids needless and Highly Unexpected problems |
| PerlJam | thrig++ (saves me the trouble of mentioning it :) |
| thrig | I've given that lecture some 10 times now at work. I think they're catching on. |
| f00li5h | three cheers for $/ ! |
| NOTevil | hip hip hip |
| f00li5h | 'orray |
| NOTevil | ;) |
| killer_ | great .. get "paste unacceptable error http://www.paste.me.uk/435.html |
| krazyk | I 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? |
| PerlJam | krazyk: Carefully. From the side. |
| f00li5h | krazyk: i'd go with a pincer movement, they never see that coming |
| thrig | crabs do. All the time. and lobster. |
| krazyk | Oxo::Tongs that should help me :) |