On Sun, Oct 27, 2013 at 03:27:49PM +0100, Dr.Ruud wrote:
> On 2013-10-27 04:00, Mayuresh Kathe wrote:
>
> >#!/usr/bin/perl -w
> >
> >use strict;
> >use warnings;
> >
> >my $exponent = $ARGV[0];
> >my $number = 2;
> >my $result = $number;
> >
> >if ( not defined $exponent ) {
> > die "Usage
On 2013-10-27 04:00, Mayuresh Kathe wrote:
#!/usr/bin/perl -w
use strict;
use warnings;
my $exponent = $ARGV[0];
my $number = 2;
my $result = $number;
if ( not defined $exponent ) {
die "Usage: $0 \n";
}
You have a die() there, so no indent needed. Alternative:
# assertions
de
On 26/10/2013 13:59, Shawn H Corey wrote:
On Sat, 26 Oct 2013 07:28:09 -0400
wrote:
How about python?
Many people consider it's better than Perl and it becomes more and
more popular.
This is why:
Why what? I assume you're promoting Python, which is a bit strange on
this list.
>
> $ pyth
On Sat, Oct 26, 2013 at 10:54:12AM -0400, Shawn H Corey wrote:
> On Sat, 26 Oct 2013 16:06:56 +0530
> Mayuresh Kathe wrote:
>
> > i've been searching for books on learning and mastering perl and found
> > the series by o'reilly to be quite well recommended.
>
> Another O'Reilly book is "Perl Bes
On Sat, Oct 26, 2013 at 02:13:51PM -0700, John SJ Anderson wrote:
> On Sat, Oct 26, 2013 at 9:08 AM, Mayuresh Kathe wrote:
>
> > A pseudo-tangential question;
> > Under the platform, I could do "apt-get install perltidy" to install
> > perltidy, but there's nothing similar for perlcritic.
> > Is
On 10/26/13 04:31, Mayuresh Kathe wrote:
I have watched Python programmers pull their hair out trying to bring the
performace upto acceptable limits and resource usage under control.
As soon as their programs increase in complexity, the problems with
Python start becoming evident.
IMNSHO I've f
On 10/26/13 03:36, Mayuresh Kathe wrote:
> hi, this is my first mail to this list, and the first time i'll be
> working with perl.
Welcome! :-)
> i've been searching for books on learning and mastering perl and found
> the series by o'reilly to be quite well recommended.
> would i be right in
On Sat, Oct 26, 2013 at 2:24 PM, wrote:
> I'm a newbie of programming and want to know the differences between these 2
> tools. I believe every newbie is curious to know the truth instead of some
> junk posts online.
>
> What's the big deal to compare these 2 languages? Simply because this is a
On Sat, Oct 26, 2013 at 2:18 PM, Shawn H Corey wrote:
> There are many things in it, like "Don't use the two-argument open,"
> which are relevant. part of the problem is that many of the older Perl
> sources are out of date. PBP does tell what to use instead.
All of the Perl books that have been
On Sat, 26 Oct 2013 17:24:34 -0400
wrote:
> What's the big deal to compare these 2 languages? Simply because this
> is an old topic?
Because some of the early advocates for Python trash-talked Perl. And
Perlers, wanting to show that they can be equally immature,
trash-talked back. There is just
I'm a newbie of programming and want to know the differences between these 2
tools. I believe every newbie is curious to know the truth instead of some junk
posts online.
What's the big deal to compare these 2 languages? Simply because this is an old
topic?
> On Oct 26, 2013, at 5:08 PM, "
On Sat, 26 Oct 2013 14:13:51 -0700
John SJ Anderson wrote:
> You should also know that, Shawn's endorsement not withstanding, many
> people consider the advice given in Perl Best Practices to be a bit of
> a mixed bag. There are some good tips in there, but they're mixed in
> with a bunch of fair
On Sat, Oct 26, 2013 at 9:08 AM, Mayuresh Kathe wrote:
> A pseudo-tangential question;
> Under the platform, I could do "apt-get install perltidy" to install
> perltidy, but there's nothing similar for perlcritic.
> Is perlcritic packaged under a different name? or is there a different
> way to i
Hi. This is the _Perl_ beginners list.
Python advocacy is very much off-topic. If you'd like to stay and talk
about Perl programming, please do. If you'd like to advocate for
Python, please take that conversation some where else.
thanks,
john,
the perl-beginners list mom.
On Sat, Oct 26, 2013 at
On Sat, Oct 26, 2013 at 10:54:12AM -0400, Shawn H Corey wrote:
> On Sat, 26 Oct 2013 16:06:56 +0530
> Mayuresh Kathe wrote:
>
> > i've been searching for books on learning and mastering perl and found
> > the series by o'reilly to be quite well recommended.
>
> Another O'Reilly book is "Perl Bes
I really enjoyed reading this book by Ovid.
http://ofps.oreilly.com/titles/9781118013847/
Felt it was much easier to understand then the Learning Perl 6th edition I
was reading before.
On Sat, Oct 26, 2013 at 7:54 AM, Shawn H Corey wrote:
> On Sat, 26 Oct 2013 16:06:56 +0530
> Mayuresh Kathe
On Sat, 26 Oct 2013 16:06:56 +0530
Mayuresh Kathe wrote:
> i've been searching for books on learning and mastering perl and found
> the series by o'reilly to be quite well recommended.
Another O'Reilly book is "Perl Best Practice" by Damian Conway. Much of
this book has been incorporated into Pe
On Sat, Oct 26, 2013 at 04:47:47PM +0530, Mayuresh Kathe wrote:
> btw, most people and web pages don't mention it, but, "mastering
> algorithms with perl" is also supposedly a good book, though only a very
> old edition is available.
It is, indeed, and excellent book. And it doesn't really matte
On Sat, 26 Oct 2013 07:28:09 -0400
wrote:
> How about python?
> Many people consider it's better than Perl and it becomes more and
> more popular.
This is why:
$ python
Python 2.7.4 (default, Sep 26 2013, 03:20:26)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for mor
I have watched Python programmers pull their hair out trying to bring the
performace upto acceptable limits and resource usage under control.
As soon as their programs increase in complexity, the problems with
Python start becoming evident.
So, thanks, but, no thanks, I'd rather go with Perl inste
How about python?
Many people consider it's better than Perl and it becomes more and more
popular.
> On Oct 26, 2013, at 7:23 AM, "Bob goolsby" wrote:
>
> "Learning Perl", Schwartz, Phoenix, defoy, and others, (AKA The Llama Book)
> is the best introductory book on Perl. The book is entertai
"Learning Perl", Schwartz, Phoenix, defoy, and others, (AKA The Llama Book)
is the best introductory book on Perl. The book is entertaining,
enlightening, and in it's sixth edition -- it's that good.
Perl will change how you look at Computer languages. There are two mottoes
in the Perl World: "T
On Sat, Oct 26, 2013 at 02:04:15PM +0300, Shlomi Fish wrote:
> Hi Mayuresh,
>
> On Sat, 26 Oct 2013 16:06:56 +0530
> Mayuresh Kathe wrote:
>
> > hi, this is my first mail to this list, and the first time i'll be
> > working with perl.
> >
> > i've been searching for books on learning and master
Hi Mayuresh,
On Sat, 26 Oct 2013 16:06:56 +0530
Mayuresh Kathe wrote:
> hi, this is my first mail to this list, and the first time i'll be
> working with perl.
>
> i've been searching for books on learning and mastering perl and found
> the series by o'reilly to be quite well recommended.
>
>
Yes David, it had been answered. Thanks a lot :)
On Sun, Jul 14, 2013 at 9:01 PM, David Christensen <
dpchr...@holgerdanske.com> wrote:
> On 07/12/13 21:50, David Christensen wrote:
>
> I was half asleep when I wrote that -- it looks like three people answered
> two different questions:
>
> 1.
On 07/12/13 21:55, Chengqiao Wang wrote:
unsubscribe.
please cancel the subscribe.
I am not a list moderator and do not have the ability to unsubscribe you.
To unsubscribe from the beginners@perl.org mailing list, please send an
e-mail to:
beginners-unsubscr...@perl.org
HTH,
David
On 07/12/13 21:50, David Christensen wrote:
I was half asleep when I wrote that -- it looks like three people
answered two different questions:
1. Shawn and James -- what is the IP address of the DNS server used by
the host?
2. David -- what is the Internet address of the NAT firewall bet
On 07/11/13 23:31, Frank Vino wrote:
> Could you please let me know the perl script how to find DNS IP
> address of system.?
Testing Shawn Wilson's code:
2013-07-12 21:13:45 dpchrist@desktop ~/sandbox/perl
$ cat ip-address.pl
#!/usr/bin/perl
use strict;
use warnings;
my $file = "/etc/resolv.conf
I should've known it was somewhere in Net::DNS. Though it took me <2
minutes to think and write that. Good call.
On Jul 12, 2013 9:20 AM, "James Alton" wrote:
> use feature say;
> use Net::DNS;
> foreach (Net::DNS::Resolver->new->nameservers) { say; }
>
> James Alton
> 801-388-7497
>
>
> On Fri,
use feature say;
use Net::DNS;
foreach (Net::DNS::Resolver->new->nameservers) { say; }
James Alton
801-388-7497
On Fri, Jul 12, 2013 at 12:31 AM, Frank Vino wrote:
> Could you please let me know the perl script how to find DNS IP address of
> system.?
>
> Thanks,
> -Vino
>
Thanks Shawn.
-Vino
On Fri, Jul 12, 2013 at 12:44 PM, shawn wilson wrote:
> Easiest:
> my $file = "/etc/resolv.conf";
> open(my $fh, "<", $file) or die "Can not open $file: " . $!;
> my @dns;
> while (<$fh>) {
> next unless /nameserver +([0-9\.]+)/;
> push @dns, $1;
> }
>
> On Fri, Jul 12,
Easiest:
my $file = "/etc/resolv.conf";
open(my $fh, "<", $file) or die "Can not open $file: " . $!;
my @dns;
while (<$fh>) {
next unless /nameserver +([0-9\.]+)/;
push @dns, $1;
}
On Fri, Jul 12, 2013 at 2:31 AM, Frank Vino wrote:
> Could you please let me know the perl script how to find DN
ecember 29, 2011 2:45 PM
To: Xi Chen
Cc: beginners@perl.org
Subject: Re: Hello a question about ".+?"
On Thu, Dec 29, 2011 at 1:17 PM, Xi Chen wrote:
> Hello everyone,
>
> I have a question about how to translate the meaning of ".+?". Please
> see the examples bel
duction Support Tier II
> Gateway Error Correction, VZ450 EDI, EDI Billing, & Metakey/LIA
> 484-213-1315
>
> From: Chris Stinemetz [chrisstinem...@gmail.com]
> Sent: Thursday, December 29, 2011 2:45 PM
> To: Xi Chen
> Cc: beginners@per
On 11-12-29 02:45 PM, Chris Stinemetz wrote:
On Thu, Dec 29, 2011 at 1:17 PM, Xi Chen wrote:
Hello everyone,
I have a question about how to translate the meaning of ".+?". Please
see the examples below:
SASI_Hs01_00205058 HUMAN NM_005762 857 MISSION® siRNA 2
On Thu, Dec 29, 2011 at 1:17 PM, Xi Chen wrote:
> Hello everyone,
>
> I have a question about how to translate the meaning of ".+?". Please
> see the examples below:
> SASI_Hs01_00205058 HUMAN NM_005762 857 MISSION® siRNA 2
> 140.00
> I want to get number"
On Tue, 07 Jul 2009 08:19:50 +1000, Emanuele Osimo
wrote:
Hello there,
I'm a biologist and I'm trying to start using bioperl for bioinformatic
purposese but I've never programmed.
Could you suggest me something to read to start from 0 level?
Have you looked at Beginning Perl for Bioinformat
Emanuele Osimo wrote:
> Hello there,
> I'm a biologist and I'm trying to start using bioperl for bioinformatic
> purposese but I've never programmed.
> Could you suggest me something to read to start from 0 level?
>
> In the meantime, I installed bioperl and I'm doing some little trials to get
> t
On 7/6/09 Mon Jul 6, 2009 3:19 PM, "Emanuele Osimo"
scribbled:
> Hello there,
> I'm a biologist and I'm trying to start using bioperl for bioinformatic
> purposese but I've never programmed.
> Could you suggest me something to read to start from 0 level?
See the FAQ 2 for Perl. Try this at a c
On Thu, Dec 11, 2008 at 14:56, Pazhaniraj Bangaru Samy
wrote:
> Raj
> Work - 858-524-2142
> Cell - 949-412-4525
Goodbye.
--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional
On 10/5/07, Niels Will <[EMAIL PROTECTED]> wrote:
snip
> On the first file, the REPORT_TOP format is beeing used but not on the
> second, third, and so on one.
snip
Perl formats are a pain, and probably should not be used. Take a look
at the Perl6::Form module for a better solution. The answer t
Dr.Ruud am Donnerstag, 4. Januar 2007 19:37:
> "D. Bolliger" schreef:
> > perldoc -f cp
>
> You were kidding, right? :)
ugh, my mail client must have automatically abbreviated
perldoc File::Copy # inlcuding cp
:-)
thanks,
Dani
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
On 3 Jan 2007 at 16:19, Tom Messmer wrote:
Hi Tom,
They like you to bottom post of this list. See below.
> instead of
> Copying /usr/blah/htdocs/media/events/blah06/epic_struggle/mp3/
> cuchailain.mp3-> /home/messmer/test/fake_mp3dir/cuchailain/
> cuchailain.mp3
>
> In other words, there will be
Thanks for the reply. I tried it out and it merely copies the file
from one directory to another, rather than to a directory named for
the author: in this case from
my $source_dir = '/usr/blah'; to
my $distin_dir = '/usr/blany/blanagain/';
with output like this:
Copying /usr/blah/htdocs/medi
On 3 Jan 2007 at 8:02, Tom Messmer wrote:
> Hello everyone,
Hello and welcome,
> Just joined this list and I have a doozie I've been working on for a
> bit here to no avail. The entire problem is this; I have a list of
> files, say that they are named "flynn.foo, flynn_something.foo,
> fla
On Mon, Jan 01, 2007 at 11:22:17PM -0700, eko hermiyanto wrote:
> There is no good editor other than GNU Emacs. It's hard to learn in the
> first timer but really worth in the long time. GNU Emacs can be used to do
> almost everything. Even, it's very good to be used for the almighty Perl
> program
There is no good editor other than GNU Emacs. It's hard to learn in the
first timer but really worth in the long time. GNU Emacs can be used to do
almost everything. Even, it's very good to be used for the almighty Perl
programming. I really wonder there is a great editor GNU Emacs but why many
pe
http://www.textpad.com/ is also very good.
-Original Message-
From: Todd W [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 22, 2006 1:40 AM
To: beginners@perl.org
Subject: Re: Hello to Perl World
"Tom Smith" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL
> "Ian" == Ian Macdonald <[EMAIL PROTECTED]> writes:
Ian> Next I would ask for some advice, I wish to change the MAC address of my
Ian> smoothwall, firewall every 24 hours, I can do it manually, but would
Ian> prefer it to be a cron job and perl seems ideal. You may well ask why I
Ian> wish t
I have no idea exactly how to do it, as I have never even heard of a
smoothwall firewall but I would like to caution you.
The thing is that as soon as you stumble upon the unlucky coincidence of
changing to the same mac address as one of your fellow internet users who
happens to be on the same ro
Please use a descriptive subject line. Half the spam I get has "Hello"
for a subject, so your message nearly got flagged as spam & deleted.
On Wed, 27 Apr 2005, laxmi goudappa patil wrote:
> Doing serial programming in perl. when i read a port, if there is data
> on the port it reads successful
On 27 Apr 2005 11:34:21 -, laxmi goudappa patil wrote:
> Hello..
> Im new to the Perl..
Post some code, no one will be able to help you otherwise.
Also, "Hello" is a bad subject for an email to this list. Please use a
more meaningful subject in the future.
--
Offer Kaye
--
To unsubscribe,
I started with a book. Don't think the name could be useful for you 'cause
it's in spanish. But I'm pretty sure "Learning Perl" will do the Job.
Don't skip the very basic... 8-)
After that try to install some free scripts and see how they work.
-rm-
- Original Message -
From: Todd <[EMAI
I just started learning perl with this book and looks very very good.
-Original Message-
From: Jeff Westman [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 9:17 AM
To: beginners
Subject: Re: hello
An excellent starting point is the camel book, "Learning Perl", by Randa
An excellent starting point is the camel book, "Learning Perl", by Randal
Schwartz & Tom Christiansen. Don't let the title fool you -- it's a solid
reference too
--- Todd <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> I imagine you see emails like this frequently, but I am looking for so
Jim -
That's a bit much for most of use to wade through...
Can you try to find the part of it not working and just
post that? I'm sure you will get a lot more help that way!
Aloha => Beau.
-Original Message-
From: FLAHERTY, JIM-CONT [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 200
--- "FLAHERTY, JIM-CONT" <[EMAIL PROTECTED]> wrote:
> I have a test maker script, that generates random questions
> from a DB. My grader script needs to grade those same
> random questions
Read, and then repost with a more specific question, one that
does not take 2 hours or more to figure out
That code looks like some of my first few scripts that I ever wrote, and
that I am currently re-writing (from scratch) to be more managable.
Nikola Janceski
He who asks is a fool for five minutes, but he who does not ask remains a
fool forever.
-- Chinese Proverb
-
--- Oskar Norin <[EMAIL PROTECTED]> wrote:
> I having trouble to use Net:Telnet:Cisco lib because it
> exits the program when its not able to connect to a host.
> How can I a prevent it from exiting and just read the
> error message and continue with the next host.
eval {
# Do code
}
if ($@)
--- Peter Scott <[EMAIL PROTECTED]> wrote:
> At 11:12 AM 1/3/02 -0700, Naeemah Small wrote:
> >I am creating a table form.
> >The reason why, is because I want it to be neat.
> >I am using CGI.pm
> >
> >This is my first time making a form in perl.
> >How do I do it.
>
> You can't avoid the tutori
At 11:12 AM 1/3/02 -0700, Naeemah Small wrote:
>I am creating a table form.
>The reason why, is because I want it to be neat.
>I am using CGI.pm
>
>This is my first time making a form in perl.
>How do I do it.
This type of question isn't very useful on this list; let me see if I can
explain. It
On Thu, 3 Jan 2002, Naeemah Small wrote:
> I am creating a table form.
> The reason why, is because I want it to be neat.
> I am using CGI.pm
>
> This is my first time making a form in perl.
> How do I do it.
read all about it with the command:
perldoc CGI
or search the web->
http://www.googl
[EMAIL PROTECTED] wrote:
> Hi, there. I am a perl newbie. I just was curious how I can convert this:
> $q -> start_form({action => $q -> url()}) .
>
> (Where url = www.domain.com)
>
> to turn url into
> www.domain.com/form.htm
>
> I don't know how to edit that line to do it
>
> Just figured I'd
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 12, 2001 3:58 AM
> To: [EMAIL PROTECTED]
> Subject: hello!! please help me!!
>
>
> hello!!
> I'm a begginer of perl. so i have many problomes.(my english
> is poor.I'm sorry)
> please
On Sunday 02 December 2001 11:43 am, [EMAIL PROTECTED] wrote:
> I'm just trying to tell if dbi itself is installed or not. I guess I have
> to go to the mysql site and download it, but do I install the DBI for perl
> or since I am using mysql *just* the specified DBD for mysql? That's what
> is
[EMAIL PROTECTED] [[EMAIL PROTECTED]] quoth:
*>
*>Perl dbi and *then* another choice is perl DBD which is for mysql. Does this
*>mean I need both or just one? As I am only interested in using mysql with perl
You need both the DBI and the DBD for mysql
http://www.cpan.org/misc/cpan-faq.html#Wher
Thanks, Bob, for the reply. however, I have mysql/perl isntalled on our linux
already
would it work for linux? Hrm...it's nice to offer, I just wanted to make that
clear so I don't waste your time lol
I'm just trying to tell if dbi itself is installed or not. I guess I have
to go to the my
In article <013e01c144d5$38c6f3d0$73f88a10@kavitham>,
[EMAIL PROTECTED] (Kavitha Malar) wrote:
> I want to take a win32 perl script to unix. Is their any document
> telling that what are the problems we are going to face, when we take
> the script to unix domain.
the perlport man page is prob
Things you need to look out for are file locations, adding the shebang to
the top of the script (the #!/path/to/perl), directory paths that are
specified as \\ instead of / and any Win32 specific modules. Other than
that, test the script and see if it breaks...
HTH
John
-Original Message---
On 20 Jun 2001 12:52:20 -0800, Michael Fowler wrote:
> On Wed, Jun 20, 2001 at 04:38:14PM -0400, Chas Owens wrote:
> > The Perl syntax to match the VB loop above is:
> >
> > while ($a = 5 or $b = 2) {
> > blah blah blah;
> > }
>
> Chas, of course, meant ==, not =, as in:
>
> while ($a =
On Wed, Jun 20, 2001 at 04:38:14PM -0400, Chas Owens wrote:
> The Perl syntax to match the VB loop above is:
>
> while ($a = 5 or $b = 2) {
> blah blah blah;
> }
Chas, of course, meant ==, not =, as in:
while ($a == 5 or $b == 2) {
...
}
VB has some weird things going on
On 20 Jun 2001 17:23:53 -0300, Sebadamus wrote:
> Hello,
>
> I am starting with Perl; and I have to make programs previously made in
> Visual Basic in Perl... (at least Windows wont hang up, now I am using linux
> :-
>
> Well, I made a little menu that reads from a config file and update it,
72 matches
Mail list logo