Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Whats its bad here?

by ccn (Vicar)
on Sep 25, 2009 at 12:32 UTC ( #797481=note: print w/ replies, xml ) Need Help??


in reply to Whats its bad here?

use strict; use warnings;

check result codes and $!

At least:

mkdir "c:\\datos_dms\\$vTemp2" # NOTE: \n is eliminated at the +end of string! or warn "No se ha podido crear el directorio $vTemp2: $!\n";


Comment on Re: Whats its bad here?
Select or Download Code
Re^2: Whats its bad here?
by Sombrerero_loco (Sexton) on Sep 25, 2009 at 12:40 UTC
    i only receive as warning:
    Global symbol "$vTemp2" requires explicit package name at C:\directori +o_creator.cgi line 29.
    im still founding anything that can help me.

      That's no warning, that's an error message. Your program doesn't even start, because Perl found an error in it.

        YUp, if i disable use strict it works, and if i print the var $vTemp2 its shows me the correct info.... Its a weird thing.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://797481]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-09-03 02:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls