Archive for the ‘perl’ Category

How can I make a back button for a perl cgi program that retains previous data?

Friday, December 30th, 2011

I can't use JavaScript, so unfortunately no history.back(). Using $ENV{'HTTP_REFERER'} starts the program from first question. Using href I can pass a query string, but then the data isn't going to be submitted. Any help will be greatly appreciated .

How do you design a simple PERL program?

Saturday, December 17th, 2011

I have to design a PERL program for class but my professor isn't very good at explaining things. the goal of the program: design a character counting program If the input looks like this: black the output: 5 black I've googled this but haven't been able to find a simple explanation. Could someone help? the ...

How to parse out unwanted characters in a text file using Perl?

Wednesday, December 14th, 2011

I wrote a Perl script to log into my telnet server and send the output to a text file, but I am getting a ton of weird characters within each sentence of output that I want to parse\take out. All I want to do is read in the text file ...

I Need to make a perl program that does the following things?

Monday, November 14th, 2011

I need to make a perl program that adds three variables like x y z and then using those same variables the user inputted it then needs to subtract and multiply so say i enter 3 4 5 add would be 12 multiplying would be 60 etc I have made one but it doesn't ...

Suggestion for the project in Natural Language Processing using Active Perl?

Friday, November 11th, 2011

Dear all, Does anyone have any ideas for project in Natural Language Processing using Active Perl. I am beginner (I had never used this programming language), and need to do a small project (max 100 lines code). Any suggestion (web site, or example) would be welcome. Thank you!

Is it possible to insert string in hash table as value in perl?

Saturday, October 29th, 2011

i want to insert string as value in hash table in perl can you tell me how plzzz?

How do i code in perl and send a mail using powershell to send a email from perl win code?

Tuesday, October 25th, 2011

I want to be able to send email using perl and use call to shellscript to make that email call from perl.

which is a better beginner programming language and why?

Thursday, September 15th, 2011

Im trying to figure out if I should learn Perl or Ruby first. Can anyone give me some general info on the languages and tell my why they are suitable as a first language. I am also thinking about python. It seems the easiest one to learn, but I wanna ...

Perl: Read binary file byte by byte and print bytes to console?

Thursday, September 8th, 2011

I have a binary file I want to open in perl, read byte by byte and print to the terminal. Any ideas? I want the bytes printed as hex like this: 90 3C 00 FF 03 3F 5F 67

How do I parse a file in Perl for a string?

Thursday, September 1st, 2011

I'm very new to Perl and learning what I can. One thing I haven't been able to find out is how to parse a file for a string of text and return a simple "true" or "false" if the string is found. I appreciate all your help! While I believe Slurp ...

Is there a wget + perl recipe for datamining Y!A?

Tuesday, August 30th, 2011

Looking for something that would strip html and reduce standard Y!A pages to a .csv file containing info regarding poster, time, question and answer for subsequent spreadsheet analysis.

Perl substr replacement help.?

Monday, August 29th, 2011

I'm using substr in perl to add missing characters to a string. ex. substr($string, length($string), 23-length($string), ????) After this, I need to add a character for each missing character, how would I do this? :x For an example. I enter the number 19563, but the length of the string needs to be at least 10 ...

how to use/write perl script in linux copy file from windows?

Sunday, August 28th, 2011

how to use/write perl script in linux copy file from windows? I need to execute perl script from linux server copy a file from windows drive folder. example like: the file is located at c:\abcd\xyz.log i need to copy this xyz.log to a linux/unixbase server directory /var/opt/abc/xyz.log by using perl script on linux/unix base ...

How to use a perl module?

Saturday, August 27th, 2011

I'm relatively new to perl and I'm confused a bit using cpan.org perl modules the module description is long and confusing kinda i can install them but not sure how to use them properly can any one who is experienced in perl explain how to use a module inside a script with an ...

How can I open a website and interact with it while it is automated?

Wednesday, August 24th, 2011

I want to access webpages using an automated script ie. perl or possibly batch. Does anyone know how to do this? I don't want to simply open a web page; I want to interact with it once I am there using the automated script.

PERL — outputting the date as a folder name in a specific format?

Friday, August 19th, 2011

Hi, here's a perl program.. I want it to output the current date to a folder name in a specific format... code as follows: #!/usr/bin/env perl use warnings; use strict; my($day, $month, $year) = (localtime)[3,4,5]; $month = sprintf '%02d',$month+1; $day = sprintf '%02d',$day; system('md "',$year+1900,'.',$month,'.',$day,'"'); It outputs a folder with spaces as: " YYYY . MM ...

i installed active perl in the folder C:/perl. how can i access perl environment and run perl scripts?

Friday, August 19th, 2011

when ran perl application file a window opened with black background with no text in it. how can i compile the program from there?

Perl Script & Microsoft Outlook?

Tuesday, August 16th, 2011

Hello, I've been tasked to write a Perl Script (Programming language) to retrieve all the email address from the microsoft outlook 2007. The problem I'm facing is I don't even know how to do it. All the contacts are in group. Any help/website that can help me retrieve selected group ...

Using Perl, how can I search a directory and all it contents for a string?

Monday, August 15th, 2011

I am working on a Linux box and need to search through a directory and its contents using Perl script for "rcp", "rsh", and "rlogin".

how to get perl CGI to work?

Thursday, August 11th, 2011

I don't understand how to get perl CGI set up so I can use it. I understand how to code with CGI scripts but I have no idea how to get it set up. Please help! thanks