Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Read, Load and rename files from CD

by kcott (Canon)
on Oct 17, 2013 at 03:23 UTC ( #1058586=note: print w/replies, xml ) Need Help??


in reply to Read, Load and rename files from CD

G'day Jalcock501,

The following two lines are missing terminating semicolons. You would have received an error message about this: where is it? Also, consider the absence/presence of leading/trailing slashes in the pathnames.

my $np_new = 'usr/castle/np_new/' my $temp = 'usr/castle/pctemp'

This line is also wrong:

copy ($fileName, $np_new.'/usr/castle/pctemp/'$dest{$search})

You possibly meant:

copy ($fileName, $np_new.'/usr/castle/pctemp/' . $dest{$search}) # ^ (concatenation)

Again, I would have expected an error message. Please either post the errors you get or, if you're not getting any, post the actual code you're running.

-- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058586]
help
Chatterbox?
[chacham]: finally fixed it. just changing it in all my projects... then maybe to finally fix the junit error i've been ignoring

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-03-29 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (344 votes). Check out past polls.