$filename = "s:/free/$thefile";
Using this code gives me the following error:
cannot open local file s:/Free/name.ts no such file or directory.
But there IS. So I either get the weird double slashes as so:
S:\\free\\name.ts
or the error above.
Man this makes no sense.... a bug in perl?
Ack dangit I left the correct line commented out! that line should be gone. The file name is a variable not a hard coded thing. So it should be :
my $thefile = $q->param('filename');
not
$thefile = "name.ts";
Well the point is I am trying to pull that file from a shared drive to the ftp location. so S:\free\$thefile is what I started with... no luck though.
That double slash errors out as well, but when I use the opposite slash it works, but again it adds the x0scree to the file name "name.ts" so it...
So I should have it read :
put ($localdir/$thefile)
?
backslash found where operator expected error now that I changed that....
Sorry I am kind of new to this whole perl thing.
I am getting a weird x0cree added on to the file name of “name.ts”. I use scripts VERY similar to this one and they work fine, The only difference being the $localdir variable. I also tried chdir “s:\free”; as well with no luck…
This is my information:
This is my error:
[Mon Aug 04...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.