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 s
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
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=; #gi
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.
- fact
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
> do
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.
>
>
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 func
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
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
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 ';' a
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 Per
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 modul
> "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.
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 lin
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 \"algo
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 prompt
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 scri
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 tal
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
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
Hi,
I want to read the installed perl manual on "use strict", so how do I search
the perl manual for "use strict"
Thanks
> "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.
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 command
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. T
- 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 a
- 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
Hi
John thanks for replay, script is working fine
I am unable to understand following expression
s!/\*.*?(?:\*/|$)!!,
I am unable to find the functionality of
1) s!
2)?:
With Books available with me
Can any one send the path tutorials about the regular expression contain
description of s! and
Prabu Ayyappan wrote:
From: Manoj <[EMAIL PROTECTED]>
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 th
Gowri Chandra Sekhar Barla, TLS, Chennai wrote:
From: John W. Krahn [mailto:[EMAIL PROTECTED]
$ echo "
/* requesting for the script
* more
* and more
* for printing line number */
Fun_script()
{
Int a; /* local parameter */
Int b; /* local parameter */
/* adding the
John W. Krahn wrote:
Prabu Ayyappan wrote:
From: Manoj <[EMAIL PROTECTED]>
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
30 matches
Mail list logo