t's profileThomasGoddard.comPhotosBlogNetworkMore ![]() | Help |
|
|
September 05 Perl:: Get input from a command lineIt's a trivial task in C# but in Perl you have to understand what's required and what to call to get the input. After you understand what's required, it's pretty simple.
#< -- thats a comment #We have to use Win32::Console instead of Term::ReadLine #Term::ReadLine has issues on windows systems and will fail with "SetConsoleMode failed in ReadKey"
use Win32::Console; #this is used to take hash values and convert to standard strings. #This will output some text to the terminal #This is where the variable cool is set to the input of the user. #That's it we can print the variable. print $cool September 03 Getting perl to compile thingsWell, I'm not a Perl Guru, I'll admit. I am interested in working with it to discover some IP that is not yet out for .net. In my adventure down the Perl path I ran into some newbie questions and answers. These might be some simple issues but they're important for new perl developers. When running the Makefile.PL that comes with any perl application by typing Makefile.PL, after you've installed ActivePerl, you can sometimes receive warnings about dependencies missing: Warning: prerequisite "your component" "Version" not found. Use ppm install 'your component' to install the binary of the component... |
|
|