| action | rhizo thinks that means "gotta irc and drink beer before some commet hits and we all die of radiation" |
| rhizo | thinks that means "gotta irc and drink beer before some commet hits and we all die of radiation" |
| merlyn | I've been coding all day "it's been a hard... days night" |
| narutosan | Khisanth: ok but is that correct in the prSelections I have 'subjsec$id' where it gets incremented as it takes from different blocks n in updateRecords I have '$subjsec' its going to fetch me the same data?? |
| Khisanth | why would it? they are in no way related |
| narutosan | Khisanth: But when I give 'subjsec' in prSelections then Only one value gets printed all the way?? how is this so?? |
| revdiablo | madflojo: Is the if() that runs mkpath being executed? |
| narutosan | Khisanth: in the database is what I mean |
| Khisanth | your html generating looks more or less ok, the problem is you never bother to retrieve some of the values being passed to your script |
| madflojo | heh.. you know what it isn't hrm |
| narutosan | Khisanth: I am actually replacing 'subjsec$id' to 'subjsec' |
| madflojo | thats weird |
| revdiablo | madflojo: Does the target directory already exist? |
| madflojo | now im still kinda a perl newb |
| narutosan | Khisanth: I don't understand why does this happen Khisanth: I am actually able to get the value in the database |
| madflojo | actually yeah looks like it i think i might have created it manually though |
| revdiablo | Then it shouldn't run that part, ok. That's fine |
| madflojo | let me rmdir the dir and rerun the script and see if it creates it Ok so ya Originally that directory existed but I created it outside of the script when testing it out just removed the directory and the script did not create it |
| scrottie | crap. |
| action | madflojo is running the script as root so its deffinantly not permissions |
| madflojo | is running the script as root so its deffinantly not permissions |
| JasonKing | Hey, change: if( ! -f $newlocation ) to if( ! -e $newlocation ) |
| madflojo | and if it was the mkpath should have errored telling me so |
| hobbs | madflojo: that's... odd, especially in light of the fact that mkpath doesn't return false and set $!, it dies. |
| madflojo | oh shit that worked |
| Khisanth | narutosan: $subjsec only appears ONCE in your entire script and that is only when you are trying to insert it's value into the DB, that means you have NEVER assigned a value |
| JasonKing | madflojo, and put: if( -d $newlocation ) { die "I'm a lying timewaster.\n" } |
| hobbs | madflojo: so it's not failing, you're not calling it. :) |
| madflojo | ok maybe it didnt work completely |