Thread 6 of 6 | Thread Starter | | |  kmsvge | How to flow Diagram an existing Perl scripti want a tool for perl script for reengineering. Specifically, how to flow Diagram an existing Perl script.
(Edited/cleaned up and moved from knowledge base.)
2 replies. Last post: |  mprestwood | Are you talking about creating a flow chart? If so, I currently use Visio and would recommend it.
If you're talking about some tool to automatically create a flow chart of existing Perl code, I don't know of any. When I need to create a flow chart of a complex section of code that has if statements, and loops, and jumps all over the place, I just go through it line by line.
|
|
 9290 Hits | |
Thread 5 of 6 | Thread Starter | | |  Mike Prestwood | IIS and perl.exe versus wperl.exeI have both perl.exe and wperl.exe installed. Which one should I configure .cgi and .pl perl scripts too? Currently I have it set to perl.exe. , , What's the diff? |
 9529 Hits | |
Thread 4 of 6 | Thread Starter | | |  Aurora | perl 5.8 kernel 2.40.19Does anyone know what syntax to fork() in perl is? , , perl 5.8 kernel 2.40.19 1 Reply: |  adamlum | my $pid = fork();, , The parent's $pid will contain the process ID of the child, the child's $pid will contain 0, if the system is out of resources and cannot fork another process it will be undefined., , Logically check the value to have each process run through different code., , if ($pid == 0), {, # the child does something, }, else, {, # the parent does something, } |
|
 4693 Hits | |
Thread 3 of 6 | Thread Starter | | |  Donnaa5dcp | easy one about forms.....Ive followed the instructions at namehog.net:, http://www.namehog.net/support/formemail.htm , to put a form on my webpage. But it doesnt work. I get this error message....could anyone help??, , CGIWrap encountered an error while attempting to execute this script: , , Error Message: No such file or directory , Error Number: 2 , This message usually indicates there is a problem with the script itself. Often this indicates either that the #! line of the script is incorrect, or the script was uploaded in binary mode instead of ascii mode. Check to make sure that the script does not have control-M's at the end of every line. That will prevent it from executing. An easy fix that takes care of this most of the time is to put '#!/.../perl --' instead of '#!/.../perl' on the first line of the script. , If you are not the owner of this script, please forward this error and the URL that caused it to the script owner. That is often the component in the URL right after /cgiwrap/. |
 3133 Hits | |
Thread 2 of 6 | Thread Starter | | |  Insanity | Chat kick optionI need to add a kick option to a chat program I am making.I was wondering how can you get the server to read from a list box (ban list) or how I could close a single slients connection to the server?Any help on either of these would be appreciated, , Insanity |
 3479 Hits | |
Thread 1 of 6 | Thread Starter | | |  Bbouch | unlink the unkownI want to be able to delete all the files in a given directory: Currently I am trying to use the unlink funtion to "unlink *" in the directory. The actual code looks like this:, , unlink ("/sasdata/$ENV{'LOGNAME'}/$_[0]/*");, , This does not seem to be working... Is there a better way to do this, or can someone help me get this working???, , Thanks!, Brian, , UPDATE : I have solved this problem, and wanted to make the solution available to anyone that might be trying something simlar, , the code looks like this:, , my @files = glob "//*";, , unlink @files; |
 3355 Hits | |
 |
|