Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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";

Replies are listed 'Best First'.
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?
[Corion]: erix: I'm not sure if it really is MySQL - maybe MS SQL also has LIMIT 0
[erix]: it has TOP, IIRC
[Corion]: erix: Ah. I use where 1 = 0 for queries where I only am interested in the structure ;)
[erix]: 1=0 is as short as TOP :)
[erix]: "code of someone that died" -- kinda nice if your code stops working too
[erix]: hard to implement, hmm
[Corion]: erix: Well, they also seem to have changed the server, or some software, or whatever, and seem to be in the process of changing the DB schema from having the "username" as primary key to something else.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2017-01-23 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (192 votes). Check out past polls.