Referring an array defined in function to another function

2010-11-03 Thread Sri
Hi I am trying to call an array defined in function1 in other function2, function3 etc. How can I implement it. Plz help me. function1 { @months = qw/Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec/; } function 2 { } function 3 { } Edit/Delete Message -- To unsubscribe, e-mail: beginners-

How to compare 2 elements in an array

2010-11-02 Thread Sri
Hi I am trying to figure out how can we compare two index values of two strings in the same array, so that if the 1st argument index value is less than second argument index value, I want to swap the input arguments.Please help me with that. I successfully got the index values for the given input

Checking the number of arguments passed to a Perl Program

2010-11-01 Thread Sri
Hi - I have just started with Perl and would need your help on this. I am trying to write a program which expects two strings(arguments) from the end user (no less, no more) and I would like to check if the end-user did pass only two arguments. I am using the code below for this task. Pl advice.

to fork process and use FIFO.

2005-04-30 Thread Sri Pen
Need Help on how to fork process and use FIFO. I have 10 processes that I would like to fork form parent. Each process reads a different file, processes it and returns a log. I Need to consolidate all the Logs from all 10 processes and write it out to a single file. Can some one help me

Parsing HTML Tables

2005-04-30 Thread Sri Pen
my( @tableRows, @tableDefRows); $htmlContent = s/\n//g; # $htmlContent Contains the below sample 4321191 http://mail.yahoo.com/config/login?/pls/bug/webbug_util.show_bug_user? p_userid=YHIRA">YHIRA Bug 432119 - WHEN CREATING DATABASE 11 - Code Bug (Response/Resolution) http://mail.yahoo.com/conf

Re: uploading from network

2003-07-23 Thread Sri
if you have to first see if the ftp below works: $ftp eg. say the ip address is some 148.87.36.11 $ ftp 148.87.36.11 $ put file $ bye. sri. "Saurabh Singhvi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi all > i am in a local net and we use a netmon

Re: loading a module

2003-07-22 Thread Sri
Have you tried PERL5LIB enviroment variable that should take of handling .pm not found. "Casey West" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It was Monday, July 21, 2003 when Hemant Desai took the soap box, saying: > : cant' locate loadable object from module Time::HiRes in

Serialized Shared Memory on Redhat 7.3.

2003-07-20 Thread Sri
Hi, Has anybody used the IPC::Shareable on redhat 7.3. I am unable to configure mine. Is there any better modules out there that come with both the STORABLE and SHAREABLE features. Need some input on this or is there a better way i can implement using DBM or that sort. Thanks sri