Re: posix shared memory

2008-03-13 Thread Jenda Krynicky
From: Nei Kai [EMAIL PROTECTED] 2008/3/11, Tom Phoenix [EMAIL PROTECTED]: On Mon, Mar 10, 2008 at 5:44 PM, Nei Kai [EMAIL PROTECTED] wrote: I found a mmap module in CPAN, called Sys::Mmap, whose version is V0.13 and is not updated since 2002. So I am not sure if it is supposed

Re: How do I get the contents of a url?

2008-03-13 Thread Jenda Krynicky
Date sent: Wed, 12 Mar 2008 17:00:02 -0400 From: Jonathan Mast [EMAIL PROTECTED] To: beginners@perl.org Subject:How do I get the contents of a url? How do I get the contents of a url? I mean passing a url to whatever object and receiving the content of that webpage as a

copy the which is before ,(comma) in one file and matching pattern in another file

2008-03-13 Thread nani
Problem Def: copy the pattern which before ,(comma) and find a matching pattern in another file. status: i wrote following code. but it is not working properly. plz help me. #! C:\Perl\bin\perl.exe print hello\n; print Please Enter Input File name(Give the complete path):; $infile=STDIN;

functions: rotate and factorial

2008-03-13 Thread Sharan Basappa
Hi, I was wondering if perl has support for the following operators or functions: - rotate: the elements of a given array are shifted such the elements are shifted right or left and the last/first element fill the first/last position depending on whether shift right or shift left is done. -

Re: functions: rotate and factorial

2008-03-13 Thread Chas. Owens
On Thu, Mar 13, 2008 at 8:36 AM, Sharan Basappa [EMAIL PROTECTED] wrote: snip - rotate: the elements of a given array are shifted such the elements are shifted right or left and the last/first element fill the first/last position depending on whether shift right or shift left is done.

Re: print spanish symbols

2008-03-13 Thread obdulio santana
2008/3/12, Jenda Krynicky [EMAIL PROTECTED]: From: obdulio santana [EMAIL PROTECTED] I want to show some áéíóú or ~n ~N in my program but I dont know how to print it in a properly way; perl -e print \algodón\n\ algod 3/4 n thanks in advance. I'm afraid you'll have to tell

Re: functions: rotate and factorial

2008-03-13 Thread Jenda Krynicky
Date sent: Thu, 13 Mar 2008 18:06:27 +0530 From: Sharan Basappa [EMAIL PROTECTED] To: beginners@perl.org Subject:functions: rotate and factorial Hi, I was wondering if perl has support for the following operators or functions:

Re: functions: rotate and factorial

2008-03-13 Thread Chas. Owens
On Thu, Mar 13, 2008 at 9:02 AM, Jenda Krynicky [EMAIL PROTECTED] wrote: snip right @a = (pop(@a), @a); left @a = (@a[1..$#a], $a[0]); snip These are O(n) operations and are fine if n is small, but the push/shift and unshift/pop implementations are O(1). Of course, the push/shift and

Re: functions: rotate and factorial

2008-03-13 Thread obdulio santana
2008/3/13, Jenda Krynicky [EMAIL PROTECTED]: Date sent: Thu, 13 Mar 2008 18:06:27 +0530 From: Sharan Basappa [EMAIL PROTECTED] To: beginners@perl.org Subject:functions: rotate and factorial Hi, I was wondering if perl

Re: copy the which is before ,(comma) in one file and matching pattern in another file

2008-03-13 Thread yitzle
You want to start the code with these: use warnings; use strict; if(/,/) {print before match: $`\t and after match: $'\n\n;}; $x=$'; $y=$`; mysubroutine($x,$y); Should be: if(/,/) { print before match: $`\t and after match: $'\n\n; $x=$'; $y=$`; mysubroutine($x,$y); } No ';' at the

stat and timing out on SIGALRM

2008-03-13 Thread Cort Morgan
Hi, I'm trying to check a list of filenames to see if they actually exist. A problem arises if the file is located on a known server but cannot be contacted (ping times out). It seems that perl doesn't timeout, but waits for the stat call to return. My code is based on code taken from the

Re: Learning Modules

2008-03-13 Thread Gunnar Hjalmarsson
Richard Lee wrote: I would like someone's experince on learning modules. I have been avoiding learning modules for couple reasons 1)to learn and try to reinvent some of the wheels to learn the tricks 2)and I just don't really understand OO modules. It is very difficult for me to understand

Re: Learning Modules

2008-03-13 Thread Randal L. Schwartz
Richard == Richard Lee [EMAIL PROTECTED] writes: Richard 2)and I just don't really understand OO modules. You have two issues rolled into one here. The properties of OO and module are orthogonal. There are OO programs that don't use modules. There are modules that don't use OO. Do you

Re: reg help: printing line numbers in file

2008-03-13 Thread John W. Krahn
Gowri Chandra Sekhar Barla, TLS, Chennai wrote: From: John W. Krahn [mailto:[EMAIL PROTECTED] Gowri Chandra Sekhar Barla, TLS, Chennai wrote: Can any one please give the scripting for appending line numbers for the code lines For example: /* requesting for the script * for printing

Re: print spanish symbols

2008-03-13 Thread Jenda Krynicky
From: obdulio santana [EMAIL PROTECTED] 2008/3/12, Jenda Krynicky [EMAIL PROTECTED]: From: obdulio santana [EMAIL PROTECTED] I want to show some áéíóú or ~n ~N in my program but I dont know how to print it in a properly way; perl -e print \algodón\n\ algod 3/4 n

QUERY: batch CPAN installation...

2008-03-13 Thread Andrew Wan
I've got a list of CPAN modules that I want to install, over the internet. From experience, I just type cpan, then: install HTML::Clean (press RETURN for dependency prompts) install HTML::ContentExtractor (press RETURN for dependency prompts) install HTML::Diff (press RETURN for dependency

Hash CSV

2008-03-13 Thread Manoj
Hello list, Have a CSV file with the first column as unique which I am taking as hash key and rest of the line as hash value. I am opening the file and putting to hash after reading each line. There are two questions from me. 1) How to find the performance and time taken by Perl

Can perl find list of words from a PDF or other document and populate a database?

2008-03-13 Thread Stuart White
I have a bunch of documents that I need to import into a proprietary database. The database has a table with key words, specifically, names of people. This database software will import documents, but will not search those documents for these key words, and then let me know which documents

What is the perl equivalent of a bash -xv? Verbose and expand while executing?

2008-03-13 Thread Kenneth Wolcott
Hi; What is the perl equivalent of a #!/bin/bash -xv? I'd like to have verbose (print each line prior to execution) and expand each variable prior to execution while executing? How do I run perl in debug mode non-interactively, dumping every variable when it gets modified? How do I get

Re: What is the perl equivalent of a bash -xv? Verbose and expand while executing?

2008-03-13 Thread Chas. Owens
On Thu, Mar 13, 2008 at 7:09 PM, Kenneth Wolcott [EMAIL PROTECTED] wrote: Hi; What is the perl equivalent of a #!/bin/bash -xv? I'd like to have verbose (print each line prior to execution) and expand each variable prior to execution while executing? How do I run perl in debug mode

how to search manual for use strict

2008-03-13 Thread itshardtogetone
Hi, I want to read the installed perl manual on use strict, so how do I search the perl manual for use strict Thanks

Re: [PBML] What is the perl equivalent of a bash -xv? Verbose and expand while executing?

2008-03-13 Thread Randal L. Schwartz
Kenneth == Kenneth Wolcott [EMAIL PROTECTED] writes: Kenneth How do I get the answers to either or both of these questions using Kenneth perldoc? By searching the perlfaq. perldoc perldoc will tell you how to use perldoc, and from there, you can get the searches. -- Randal L. Schwartz -

Re: how to search manual for use strict

2008-03-13 Thread Mark Wagner
On 3/13/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I want to read the installed perl manual on use strict, so how do I search the perl manual for use strict Does perldoc strict not work for you? -- Mark -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Learning Modules

2008-03-13 Thread Richard Lee
Randal L. Schwartz wrote: Richard == Richard Lee [EMAIL PROTECTED] writes: Richard 2)and I just don't really understand OO modules. You have two issues rolled into one here. The properties of OO and module are orthogonal. There are OO programs that don't use modules. There are

Re: Hash CSV

2008-03-13 Thread Prabu Ayyappan
- Original Message From: Manoj [EMAIL PROTECTED] To: beginners@perl.org Sent: Friday, March 14, 2008 12:09:42 AM Subject: Hash CSV Hello list, Have a CSV file with the first column as unique which I am taking as hash key and rest of the line as hash value. I am opening the file and

Re: how to search manual for use strict

2008-03-13 Thread Prabu Ayyappan
- Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: beginners@perl.org Sent: Friday, March 14, 2008 5:14:40 AM Subject: how to search manual for use strict Hi, I want to read the installed perl manual on use strict, so how do I search the perl manual for use strict Thanks