#perl - Sat 10 Mar 2007 between 00:05 and 00:13



actionrhizo thinks that means "gotta irc and drink beer before some commet hits and we all die of radiation"
rhizothinks that means "gotta irc and drink beer before some commet hits and we all die of radiation"
merlynI've been coding all day
"it's been a hard... days night"
narutosanKhisanth: 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??
Khisanthwhy would it? they are in no way related
narutosanKhisanth: But when I give 'subjsec' in prSelections then Only one value gets printed all the way?? how is this so??
revdiablomadflojo: Is the if() that runs mkpath being executed?
narutosanKhisanth: in the database is what I mean
Khisanthyour html generating looks more or less ok, the problem is you never bother to retrieve some of the values being passed to your script
madflojoheh..
you know what
it isn't
hrm
narutosanKhisanth: I am actually replacing 'subjsec$id' to 'subjsec'
madflojothats weird
revdiablomadflojo: Does the target directory already exist?
madflojonow im still kinda a perl newb
narutosanKhisanth: I don't understand why does this happen
Khisanth: I am actually able to get the value in the database
madflojoactually yeah
looks like it
i think i might have created it manually though
revdiabloThen it shouldn't run that part, ok. That's fine
madflojolet 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
scrottiecrap.
actionmadflojo is running the script as root so its deffinantly not permissions
madflojois running the script as root so its deffinantly not permissions
JasonKingHey, change: if( ! -f $newlocation ) to if( ! -e $newlocation )
madflojoand if it was the mkpath should have errored telling me so
hobbsmadflojo: that's... odd, especially in light of the fact that mkpath doesn't return false and set $!, it dies.
madflojooh shit that worked
Khisanthnarutosan: $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
JasonKingmadflojo, and put: if( -d $newlocation ) { die "I'm a lying timewaster.\n" }
hobbsmadflojo: so it's not failing, you're not calling it. :)
madflojook maybe it didnt work
completely

Page: 3 10 17 24 31 38 45 52 59 66 73 80 87 

IrcArchive