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

NY Lost Funds



madflojoah ya
good point
revdiabloJasonKing: Yes, but there are variables that I don't see being defined in that code
JasonKing: I don't know what's in those variables, hence it's not a standalone example
JasonKingrevdiablo, right, but $filename must have a value, otherwise $oldlocation (also output in the error) would end in a '/';
revdiablo, meaning that $NewDir must be $newlocation less $filename.
revdiabloYes, ok, fair enough
madflojosorry was at the door
JasonKingmadflojo, could $filename include more than just the filename, eg. could it be: Eminem/The Marshall Mathers LP/Jeff Bass - Public Service Announcement 2000.mp3
madflojowell let me print them better
to doublecheck
it shouldnt be
narutosanKhisanth: But is Placeholders so much necessary??
hobbsJasonKing: error message points to no
narutosan: yes.
madflojoactually
Khisanthwell I kinda like code that doesn't break due to arbitrary user input
JasonKinghobbs, sure - but the error message only makes sense if madflojo is nuts and the whole string *does* point to a directory - which he assures us it doesn't.
madflojofilename is printed
infront of the Cannot be copied
KhisanthI have wanted to strangle coworkers on a few occasions for that
madflojoJeff_Bass_-_Public_Service_Announcement_2000.mp3
JasonKingmadflojo, ah yes, so it is.
revdiabloIs the value in $! just noise? That's only reliable if you've just recieved a false return value from certain builtins
madflojothats the value of $filename
JasonKingrevdiablo, yeah, good point.
madflojoI was willing to accept the $! is just noise like rev just said
hobbsrevdiablo: the perldoc says it's okay
madflojoi think the move is erroring because the directory doesnt exist
BUT
revdiablohobbs: What's setting it in his code?
hobbsrevdiablo: File::Copy::move
madflojoas you see by the code i try and use mkpath to create the directory
actionmerlyn has a brain of mush
merlynhas a brain of mush
revdiabloOh, right. I was overlooking the move() call
madflojoif you guys want i can paste you the whole script
rhizo? ? ? ? ? ?
madflojoif it makes it any easier
Khisanthmerlyn: isn't a non mushy brain a bad thing?
merlynperhaps

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

IrcArchive

NY Lost Funds