Hi Gurunath,
On Tue, 12 Nov 2013 11:38:48 +0530
Gurunath Katagi wrote:
> Dear all,
> I want to write a program for geometric hashing in perl. Does anyone know,
> if this is a part of any perl module or someone has written the code
> sometime...
>
This search does not find anything:
https://met
On Sun, Sep 09, 2012 at 18:19:32 -0400 , shawn wilson wrote:
> On Sun, Sep 9, 2012 at 5:20 PM, Jenda Krynicky wrote:
>
> > Actually ... what percentage of websites doing email address
> > validation in their forms do you think validate according to the RFC?
> > 0.001%?
> >
>
> i've never seen an
On Sun, Sep 9, 2012 at 5:20 PM, Jenda Krynicky wrote:
> Actually ... what percentage of websites doing email address
> validation in their forms do you think validate according to the RFC?
> 0.001%?
>
i've never seen anyone do it correct in production.
--
To unsubscribe, e-mail: beginners-unsu
From: Chris Nehren
> On Wed, Aug 29, 2012 at 09:59:22 -0700 , John SJ Anderson wrote:
> > On Wednesday, August 29, 2012 at 9:46 AM, Ashwin Rao T wrote:
> > > 1)Check if IP address is in the range 172.125.1.0 and 172.125.25.0 using
> > > only
> > > return functions & regular expressions in Perl.
>
On 2012-08-29 18:46, Ashwin Rao T wrote:
3)Check if email address is valid using only return functions and regular
expressions in Perl.
It has been tried:
http://www.regular-expressions.info/email.html
http://ex-parrot.com/~pdw/Mail-RFC822-Address.html
http://stackoverflow.com/questions/201
On Sat, 01 Sep 2012 04:05:31 +, Peter Scott wrote:
> On 2012-08-29, at 12:46 PM, Ashwin Rao T wrote:
>> 1)Check if IP address is in the range 172.125.1.0 and 172.125.25.0
>> using only return functions & regular expressions in Perl.
>
> /\b172\.125\.(\d+)\.((?>\d+))(??{(1<=$1 && $1<=24 && 0<
On 2012-08-29, at 12:46 PM, Ashwin Rao T wrote:
> 1)Check if IP address is in the range 172.125.1.0 and 172.125.25.0
> using only return functions & regular expressions in Perl.
/\b172\.125\.(\d+)\.((?>\d+))(??{(1<=$1 && $1<=24 && 0<=$2 && $2<=255)||
($1==25 && $2==0) ? "" : "(*FAIL)"})/ and say
of course it's homework. though if the student would be so kind to
inform the list what the class's (and instructor's) best answer is to
#3, i'll be able to inform them whether the class is worth staying in.
seriously, it's a much harder question than it seems.
also, the cool way of answering #1 w
I smell homework:p
Paul Anderson -- VE3HOP
On 2012-08-29, at 12:46 PM, Ashwin Rao T wrote:
> 1)Check if IP address is in the range 172.125.1.0 and 172.125.25.0 using only
> return functions & regular expressions in Perl.
> 2)Check if the name is valid (has atleast 3 letters and one vo
On Wed, Aug 29, 2012 at 09:59:22 -0700 , John SJ Anderson wrote:
> On Wednesday, August 29, 2012 at 9:46 AM, Ashwin Rao T wrote:
> > 1)Check if IP address is in the range 172.125.1.0 and 172.125.25.0 using
> > only
> > return functions & regular expressions in Perl.
> > 2)Check if the name is va
On Aug 29, 2012, at 11:59 AM, John SJ Anderson wrote:
> On Wednesday, August 29, 2012 at 9:46 AM, Ashwin Rao T wrote:
>> 1)Check if IP address is in the range 172.125.1.0 and 172.125.25.0 using only
>> return functions & regular expressions in Perl.
>> 2)Check if the name is valid (has atleast
At least one Scooby snack?
-Original Message-
From: Jim Gibson [mailto:jimsgib...@gmail.com]
Sent: Wednesday, August 29, 2012 12:59 PM
To: Perl Beginners
Subject: Re: Perl Code
On Aug 29, 2012, at 9:46 AM, Ashwin Rao T wrote:
> 1)Check if IP address is in the range 172.125.1.0
On Wednesday, August 29, 2012 at 9:46 AM, Ashwin Rao T wrote:
> 1)Check if IP address is in the range 172.125.1.0 and 172.125.25.0 using only
> return functions & regular expressions in Perl.
> 2)Check if the name is valid (has atleast 3 letters and one vowel) using only
> return functions and re
On Aug 29, 2012, at 9:46 AM, Ashwin Rao T wrote:
> 1)Check if IP address is in the range 172.125.1.0 and 172.125.25.0 using only
> return functions & regular expressions in Perl.
> 2)Check if the name is valid (has atleast 3 letters and one vowel) using only
> return functions and regular expres
> "MM" == Mike McClain writes:
MM> use strict; # this can be removed when all bugs are fixed
that is not a good comment. you should keep strict on as it isn't about
finding bugs but making sure all variables are properly declared and
spelled correctly.
uri
--
Uri Guttman -- uri
On Thu, Aug 04, 2011 at 02:33:19PM +0530, VinoRex.E wrote:
> Hi
> i am a beginner in Perl i have a pdb file containing the X,Y,and Z
> coordinates of atoms example given below. the data extends upto 1000 atoms
> and its coordinates. I need a perl program to export these data into excel
> worksheet
On Aug 4, 2011 8:02 AM, "Emeka" wrote:
>
> Vino,
>
> First learn how to use Excel with Perl. The below might be useful, please
> check them out.
>
> http://support.microsoft.com/kb/214797
>
> http://www.ibm.com/developerworks/linux/library/l-pexcel/
>
That is (of course) a decent 'getting started
On Thu, Aug 4, 2011 at 6:31 PM, Emeka wrote:
> Vino,
>
> First learn how to use Excel with Perl. The below might be useful, please
> check them out.
>
> http://support.microsoft.com/kb/214797
>
> http://www.ibm.com/developerworks/linux/library/l-pexcel/
>
> Emeka
>
>
You can also learn here :
1)
Vino,
First learn how to use Excel with Perl. The below might be useful, please
check them out.
http://support.microsoft.com/kb/214797
http://www.ibm.com/developerworks/linux/library/l-pexcel/
Emeka
On Thu, Aug 4, 2011 at 10:03 AM, VinoRex.E wrote:
> Hi
> i am a beginner in Perl i have a pdb
Anirban Adhikary wrote:
Hi list
Hello,
I have wirtten the following perl code which has some configuration
params such as prefix,suffix,midfix and nofix. The logic is filenames
will be selected based on prefix,suffix and midfix pattern.After the
fiter through above 3 patterns if file names ex
Hi Anirban,
a few comments on your code.
On Thursday 02 Jun 2011 08:06:54 Anirban Adhikary wrote:
> Hi list
>
> I have wirtten the following perl code which has some configuration
> params such as prefix,suffix,midfix and nofix. The logic is filenames
> will be selected based on prefix,suffix an
On Oct 25, 9:21 am, simssa...@gmail.com (saran) wrote:
> i am new to perl. please help me with this piece of code below.
> answer wat it prints is correct but the format has to adjusted...!
> program to convert Celsius to Fahrenheit
>
On 10/25/10 Mon Oct 25, 2010 9:21 AM, "saran"
scribbled:
> i am new to perl. please help me with this piece of code below.
> answer wat it prints is correct but the format has to adjusted...!
> program to convert Celsius to Fahrenheit
> **
Hi Saran,
overall, pretty good code.
On Monday 25 October 2010 18:21:31 saran wrote:
> i am new to perl. please help me with this piece of code below.
> answer wat it prints is correct but the format has to adjusted...!
> program to convert Celsius to Fahrenheit
>
Helo Saran,
The reason why it was printed in the next line is because u have no used
chomp function on $c.Chomp would remove unwanted new line characters.
I added chomp($c) to ur code and it works fine.. i mean as hw u wanted..
pls find the same code below with chomp..
Wagner, David --- Senior Programmer Analyst --- CFS wrote:
-Original Message-
From: Anirban Adhikary [mailto:anirban.adhik...@gmail.com]
Sent: Monday, May 04, 2009 06:40
To: beginners@perl.org
Subject: Perl code for comparing two files
Hi List
I am writing a perl code which will takes
> -Original Message-
> From: Anirban Adhikary [mailto:anirban.adhik...@gmail.com]
> Sent: Monday, May 04, 2009 06:40
> To: beginners@perl.org
> Subject: Perl code for comparing two files
>
> Hi List
> I am writing a perl code which will takes 2 more files as
> argument. Then It
> will ch
> -Original Message-
> From: news [mailto:n...@ger.gmane.org] On Behalf Of Richard Loveland
> Sent: Friday, May 08, 2009 11:59
> To: beginners@perl.org
> Subject: Re: Perl code for comparing two files
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mr. Adhikary,
The following will take any number of files as arguments, in the format
you described (I even tested it! :-)). It goes through each line of
those files, stuffing (the relevant part of) each line in a 'seen' hash
(more on that, and other,
On Fri, 2008-11-21 at 23:51 -0800, sftriman wrote:
> I have this code that looks through a series of files, and for each,
> counts
> the unique number of IP addresses over the past 20 minutes, then
> rewrites
> the file contents.
>
> It seems pretty simple - each of the 5 $site files has at most 1
On Wed, 2008-09-17 at 13:09 -0700, [EMAIL PROTECTED] wrote:
> Hello
>
> I need to write some code where I invoke ftp to another node and ftp a file
> from its directory to a directory that is on my system. Can this be done in
> perl (I suspect so) and what would be the best way to do it. This wi
On 12/12/2007, Auxence Sima <[EMAIL PROTECTED]> wrote:
>
> Hi everyone.
> I d like to have u guys input about my code. Im writing a perl script
> that would generate some primers. my input file calles " output.txt ) was
> generated from primer3.
> if u guys can take a look at my script and tell
On 3/23/06, Irfan J Sayed <[EMAIL PROTECTED]> wrote:
> Hi Chas,
>
> Thanks for mail.
>
> I am writting this script in clearquest application and i really don't
> know what is the meaning of $entity. In clearquest language "An Entity
> object representing a user data record"
>
> and secound thing i
lly
don't know what all modules needs to be added to run this script.
plz help me.
Regards
Irfan Sayed
"Chas Owens" <[EMAIL PROTECTED]>
03/23/2006 10:53 PM
To
Irfan J Sayed/India/[EMAIL PROTECTED]
cc
beginners@perl.org
Subject
Re: perl code help
On 3/23/06, Irf
On 3/23/06, Irfan J Sayed <[EMAIL PROTECTED]> wrote:
>
>
> Hi Chas,
>
> This is the only program i am using.
>
> Plz tell me what i am doing wrong.
>
snip
>
> > Following is the script
> >
> > $sessionobj = $entity->GetSession();
> > $username = $session->GetUserLoginName();
> > $entity->SetFi
Hi Chas,
This is the only program i am using.
Plz tell me what i am doing wrong.
Regards
Irfan Sayed
"Chas Owens" <[EMAIL PROTECTED]>
03/23/2006 10:29 PM
To
Irfan J Sayed/India/[EMAIL PROTECTED]
cc
beginners@perl.org
Subject
Re: perl code help
On 3/23/06, Irfan
On 3/23/06, Irfan J Sayed <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have written simple script in perl to get the user login name
>
> Following is the script
>
> $sessionobj = $entity->GetSession();
> $username = $session->GetUserLoginName();
> $entity->SetFieldValue("submitter_id", $username);
>
I don't understand when you say:
"Really without more info there is not much more I can help with."
I am willing to provide as much info as you need.
what you have said already is helpful and is inline with my thinking.
I wish to look in a direcory and display to the user all of the files i
please excuse my inability to understand this code.
but what is: while ( <*> )
and where is the piece of code that tells what directory/path to look in?
where does it go?
Thanks,
Lino
"Paul D. Kraus" <[EMAIL PROTECTED]> wrote:
On Thu, May 06, 2004 at 03:28:51PM -0700, Lino Iozzo wrote:
On Thu, May 06, 2004 at 03:28:51PM -0700, Lino Iozzo wrote:
> Here is an example:
>
> I have a file and save it to a directory whether it is one file or multiple files
> then i go to my perl script and type retrievelist.pl this should look into the
> specified directory in the code and display
Here is an example:
I have a file and save it to a directory whether it is one file or multiple files then
i go to my perl script and type retrievelist.pl this should look into the specified
directory in the code and display everything in this directory.
Then retrieve list should prompt the u
On Thu, May 06, 2004 at 12:54:21PM -0700, Lino Iozzo wrote:
> Hello,
>
> Is there a way to look into a folder and pull all of the contents in that folder and
> display them on the command line.
>
> I am trying to create a script that will look into a folder that the user selects
> and then di
Well,
I just installed the module i it has many bugs, it
does not work fine. Any clue ?
--- Owen <[EMAIL PROTECTED]> wrote:
> On Mon, 26 Jan 2004 12:13:14 -0800 (PST)
> Joe Echavarria <[EMAIL PROTECTED]> wrote:
>
> > What about translating the numbers to spanish
> string
> > equivalent ?
>
>
On Mon, 26 Jan 2004 12:13:14 -0800 (PST)
Joe Echavarria <[EMAIL PROTECTED]> wrote:
> What about translating the numbers to spanish string
> equivalent ?
Well try searching CPAN, www.cpan.org
They have modules for Klingon, so they are bound to have spanish modules
Here's one
Lingua::ES::Numeros
I believe what you want is Lingua::ES::Numeros.
-Original Message-
From: Joe Echavarria [mailto:[EMAIL PROTECTED]
Sent: Monday, January 26, 2004 12:13 PM
To: Owen; [EMAIL PROTECTED]
Subject: Re: Perl code
What about translating the numbers to spanish string equivalent ?
--
To
What about translating the numbers to spanish string
equivalent ?
--- Owen <[EMAIL PROTECTED]> wrote:
> On Sun, 25 Jan 2004 22:48:55 -0800 (PST)
> Joe Echavarria <[EMAIL PROTECTED]> wrote:
>
>
> >Where can i find a perl code that translate
> numbers
> > to words ?, like 100.00 for "one hundre
On Sun, 25 Jan 2004 22:48:55 -0800 (PST)
Joe Echavarria <[EMAIL PROTECTED]> wrote:
>Where can i find a perl code that translate numbers
> to words ?, like 100.00 for "one hundred ..."
>I need it to glue it with some other code.
You might want to look at;
Lingua::EN::Numericalize
(Repl
John W. Krahn wrote:
[snip]
>>
>> example of my Subroutine declarations:
>>
>> # Get the Data Number
>> &get_number;
>>
>> # Get Form Information
>> &parse_form;
>>
[snip]
>
> You are running the subroutines. These are all equivalent (note that
> the third example only works if the sub ha
R. Joseph Newton wrote:
> James Edward Gray II wrote:
>
> > Almost. You have to declare them before you use them if you want
> > to leave of the parenthesis. :)
> >
> > James
>
> Actually, it is vice-versa.
Actually, James is correct. Quoting from perldoc perlsyn:
Declaring a subroutine
Paul Kraus wrote:
> >
> >
> > As a side note Where is the best place to put the subroutines?
> > After the exit command or in the beginning of the script? Any
> > preferences?
> I prefer sticking them in the bottom in the order they are called.
>
> This way when I open a script at a glance I
James Edward Gray II wrote:
> Almost. You have to declare them before you use them if you want to
> leave of the parenthesis. :)
>
> James
Actually, it is vice-versa. If you use prototypes, then the prototype must
be declared before any call to the function. In that case, you will have a
para
George Schlossnagle wrote:
> On Tuesday, September 9, 2003, at 10:59 AM, Rodney Wise wrote:
> >
> > It looks like by declaring my subroutines, they are being executed. ???
> >
> > example of my Subroutine declarations:
> >
> >
> >
> > # Get the Data Number
> > &get_number;
> >
> > # Get Form Info
Rodney Wise wrote:
> George,
>
> # Get the Data Number
> &get_number;
Avoid using the &function_name until you are a Perl expert, and know exactly
why you are using it. That is a call to the subroutine, but not the one to be
used under normal circumstances.
> # Get Form Information
> &parse_for
Rodney Wise wrote:
> I was under the impression that "subroutines" are only executed IF they're
> called. But, it looks like subroutines will execute on there own if they
> are written in the beginning part of the PERL code and before other code
> takes over the codes sequence of events. In oth
On Tue, 9 Sep 2003 12:28:42 -0400, "Rodney Wise" <[EMAIL PROTECTED]> wrote:
> Thanks everyone for your help.
>
> I'm working on a PERL script for the "WWWboard" originally written by Matt
> Wright. PERL isn't my primary language (as I'm sure you
ey Wise [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 9:29 AM
To: [EMAIL PROTECTED]
Subject: Re: PERL code execution rule?
Thanks everyone for your help.
I'm working on a PERL script for the "WWWboard" originally written by Matt
Wright. PERL isn't my primary la
: [EMAIL PROTECTED]
Subject: Re: PERL code execution rule?
Thanks everyone for your help.
I'm working on a PERL script for the "WWWboard" originally written by
Matt Wright. PERL isn't my primary language (as I'm sure you all can
see) ... although I'm finding it very po
Thanks everyone for your help.
I'm working on a PERL script for the "WWWboard" originally written by Matt
Wright. PERL isn't my primary language (as I'm sure you all can see) ...
although I'm finding it very powerful and useful.
Apparently, Matt used a lot of global variables in his subroutines.
Paul Kraus wrote:
>
> That's interesting. I have also read that you need to have the subs at
> the top of the script if you call it with sub()
>
> However I just realized that I always have my subs at the bottom and
> always call them with sub() without the ampersand.
>
> Am I getting lucky? Sho
On Tuesday, September 9, 2003, at 12:57 PM, Paul Kraus wrote:
That's interesting. I have also read that you need to have the subs at
the top of the script if you call it with sub()
Almost. You have to declare them before you use them if you want to
leave of the parenthesis. :)
James
--
To un
Paul
-Original Message-
From: John W. Krahn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 1:53 PM
To: [EMAIL PROTECTED]
Subject: Re: PERL code execution rule?
Rodney Wise wrote:
>
> I was reviewing my code some more and here is what I think might be
> happening.
&
Rodney Wise wrote:
>
> I was reviewing my code some more and here is what I think might be
> happening.
>
> In my code, the first thing I do is declare my variables.
>
> Then I declare my subroutines'.
>
> It looks like by declaring my subroutines, they are being executed. ???
>
> example of m
> George,
>
> Thanks for the quick response.
>
> I was reviewing my code some more and here is what I think
> might be happening.
>
> In my code, the first thing I do is declare my variables.
>
> Then I declare my subroutines'.
>
> It looks like by declaring my subroutines, they are being
>
On Tuesday, September 9, 2003, at 10:59 AM, Rodney Wise wrote:
It looks like by declaring my subroutines, they are being executed. ???
example of my Subroutine declarations:
# Get the Data Number
&get_number;
# Get Form Information
&parse_form;
Just to be sure we're on the same playing field -
eason to "declare" them.
HTH
Paul
-Original Message-
From: Rodney Wise [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 10:59 AM
To: [EMAIL PROTECTED]
Subject: Re: PERL code execution rule?
George,
Thanks for the quick response.
I was reviewing my code some more
George,
Thanks for the quick response.
I was reviewing my code some more and here is what I think might be
happening.
In my code, the first thing I do is declare my variables.
Then I declare my subroutines'.
It looks like by declaring my subroutines, they are being executed. ???
example of my
On Tuesday, September 9, 2003, at 09:50 AM, Rodney Wise wrote:
I was under the impression that "subroutines" are only executed IF
they're
called. But, it looks like subroutines will execute on there own if
they
are written in the beginning part of the PERL code and before other
code
takes ove
> Ryan wrote:
>
> I have a linux advanced server with perl 5.6.1 and my .pl
> scripts just show code on the screen. I am using apache and
> believe the problem may be within the httpd.conf file. Can
> anyone help?
>
> Thank you,
> Ryan
>
First check to make sure the script is executable by t
>
> I have a linux advanced server with perl 5.6.1 and my .pl
> scripts just show code on the screen. I am using apache and
> believe the problem may be within the httpd.conf file. Can
> anyone help?
You are correct, you need to put a directive in to associate the .pl extension just as
you wou
Hello
Probably your script is in a non executable directory or your server does
not understand the ,pl termination as an executable file
- Original Message -
From: Robbie Staufer <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 12:48 PM
Subject: perl code in brow
I've never had that problem, but maybe you should put your script in the
CGI-BIN directory. If you haven't yet.
If you're using SSI, you may check the command:
Don't have for sure, but maybe this
(Or something like that)
could produce a problem like yours.
-rm-
- Original Message -
On Thu, Jan 17, 2002 at 02:08:16PM -0500, Richard J. Barbalace wrote:
> Rajanikanth Dandamudi <[EMAIL PROTECTED]> writes:
> > Can someone help me in getting the coverage of a perl
> > program. I had used the Coverage module of the perl
> > distribution by issuing a command:
> > perl -d:Cover
Richard J. Barbalace, Daniel Gardner,
I am very thankful to both of you on helping me in this regard.
I am using the coverperl tool to get the coverage information
from the script_name.cvp file. Once again thank you very much.
Thanks and Regards
Rajanikanth
"Richard J. Barbalace" wrote:
Rajanikanth Dandamudi <[EMAIL PROTECTED]> writes:
> Can someone help me in getting the coverage of a perl
> program. I had used the Coverage module of the perl
> distribution by issuing a command:
> perl -d:Coverage script_name [ args ]
There's very little documentation in Devel::Coverage's
Hello Rajanikanth,
Thursday, January 17, 2002, 9:49:03 AM, Rajanikanth Dandamudi wrote:
> Hello,
> Can someone help me in getting the coverage of a perl
> program. I had used the Coverage module of the perl
> distribution by issuing a command:
> perl -d:Coverage script_name [ args ]
>
Title: Nature
Uncertain what you are really after, but
gving it a shot at
Chagned lines of code
to
if (
/($desc.+)/i ){print "$1\n";}
which gave output of:
Job Report for job Filesystem (job ID
1007449200):Files backed up:
421Total data backed up: 6736785 KBTotal data on
tape:
76 matches
Mail list logo