sharief has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: CMD prompt error
by talexb (Chancellor) on Jan 23, 2012 at 17:55 UTC
      I have pasted my code in my scratchpad please help me to know why do i get that error...

    Pasting code in your scratchpad is too fleeting for it to be of any use to us. Please update your post with the code (using code tags), and we'll see if we can help you.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Re: CMD prompt error
by poj (Abbot) on Jan 23, 2012 at 21:03 UTC
    Try replacing this code
    if(system(-r $createdir)) {} else { $mw->messageBox (-default => 'Ok',-title => 'Alert!',-message => "Crea +te C:/temp directory first to run the program", -type => 'Ok',); exit; }
    with this
    unless ( -d $createdir ){ $mw->messageBox ( -default => 'Ok', -title => 'Alert!', -message => "Create $createdir directory first to run the program", -type => 'Ok',); exit; }
    poj
Re: CMD prompt error
by Anonymous Monk on Jan 23, 2012 at 17:54 UTC
    Global symbol "@vndr" requires explicit package name at 945106.pl line 334.
    Bareword "MainLoop" not allowed while "strict subs" in use at 945106.pl line 438.
    945106.pl had compilation errors.

    I suspect your problem is in line 171:

    if(system(-r $createdir))

    You need to learn how to debug on your own. You are not a programmer if you do not know how to debug. This site is not a debugging service.

      You need to learn how to debug on your own. You are not a programmer if you do not know how to debug. This site is not a debugging service.

      Um, you're missing the point of perlmonks, do shut up :)