> On Jun 6, 2018, at 2:16 PM, Ahmad Bilal wrote:
>
> Ok, I went over to previously answered questions under the cgi tag here on
> stackoverflow.
This message was posted to the Perl Beginners list, so you are not at
Stackoverflow any more.
>
> This seems to be the most voted one: What is Co
> "a" == ayaa writes:
a> I have three questions:
a> 1. If I have a variable that is stored in a data set and I want to
a> formulate only one constraint (under optmodel) that is a function of
a> all the data set's observations of this variable and a decision
a> variable. Suppose the
moijes12 wrote:
> Hello friends,
>
> I have a few questions about perl,whose answers i am finding difficult
> to find.They are as below:
>
> 1)What type of language is perl?
>a)Functional Oriented
>b)Object Oriented
>c)Process Oriented
Those are programming styles, rather than langua
> "Chas" == "Chas Owens" <[EMAIL PROTECTED]> writes:
Chas> I remember in Learning Perl 2nd edition
AKA "the version that never existed". In other words, please consider
anything in that book "non-canonical", as the SciFi geeks say. Long story.
--
Randal L. Schwartz - Stonehenge Consulting
On Sun, Apr 13, 2008 at 11:58 AM, brian d foy <[EMAIL PROTECTED]> wrote:
snip
> > First off, don't call functions with &*.
>
> The is _Learning Perl_, and he hasn't got to the point where we tell
> the reader they don't need the & in front of subroutine calls. Most of
> the progression goes fro
In article
<[EMAIL PROTECTED]>, Chas.
Owens <[EMAIL PROTECTED]> wrote:
> On Sun, Apr 6, 2008 at 5:36 AM, <[EMAIL PROTECTED]> wrote:
> snip
> > my $user_total = &total();
> snip
>
> First off, don't call functions with &*.
The is _Learning Perl_, and he hasn't got to the point where we tell
t
In article <[EMAIL PROTECTED]>, Gunnar
Hjalmarsson <[EMAIL PROTECTED]> wrote:
> I don't understand what you mean. However, the code below confuses me
> for another reason.
>
> > use strict;
> > use warnings;
> > my @fred = qw/1 3 5 7 9/;
> > my $fred_total = &total(@fred);
> > print "The total o
On Sun, Apr 6, 2008 at 5:36 AM, <[EMAIL PROTECTED]> wrote:
> Hi,
> I am doing some homework from the book Learning Perl chapter 4 excercise 1,
> Looking at the script below, I wonder why line 6 (print "Enter some numbers
> on separate line: ";) is not printed immediately after the previous prin
On Sun, Apr 6, 2008 at 5:36 AM, <[EMAIL PROTECTED]> wrote:
snip
> my $user_total = &total();
snip
First off, don't call functions with &*. The problem here is that you
are evaluating in list context. That means it will read from
STDIN until it is closed. To close a STDIN on UNIX use control-
[EMAIL PROTECTED] wrote:
I am doing some homework from the book Learning Perl chapter 4
excercise 1,
Looking at the script below, I wonder why line 6 (print "Enter some
numbers on separate line: ";) is not printed immediately after the
previous print.
I don't understand what you mean. However
M. Ilyas Hassan <[EMAIL PROTECTED]> wrote:
: The input file is a flat file (.txt) parsed by "~" with 40
: columns. Columns 2-40 has numbers (all integers, +ve and -ve
: numbers). Column 0 has items in alphanumeric and column 1 has
: labels in text. I would like to find the minimum value for
: numb
M. Ilyas Hassan wrote:
> hi,
> Could someone please help me with the following perl questions.
>
> #1 - Is there a way to add "days" to a date? I want
> end_date=start_date+90days; where start_date is in the format
> 10/25/04; the output end_date should be in the same format as well. I
> was not s
ginners List <[EMAIL PROTECTED]>
To: "M. Ilyas Hassan" <[EMAIL PROTECTED]>
CC: Perl Beginners List <[EMAIL PROTECTED]>
Subject: Re: questions
Date: Mon, 25 Oct 2004 19:28:38 -0400 (EDT)
On Mon, 25 Oct 2004, M. Ilyas Hassan wrote:
> #1 - Is there a way to add "days&quo
On Mon, 25 Oct 2004, M. Ilyas Hassan wrote:
> #1 - Is there a way to add "days" to a date?
The modules that the other two respondants pointed you to are the right
way to do this, but it's good to know that the way to do this by hand --
which you won't want to do, but it's good to see why not --
hi,
Hello,
Could someone please help me with the following perl questions.
#1 - Is there a way to add "days" to a date? I want
end_date=start_date+90days; where start_date is in the format 10/25/04;
the output end_date should be in the same format as well. I was not
successful loading the Date:
M. Ilyas Hassan wrote:
#1 - Is there a way to add "days" to a date? I want
end_date=start_date+90days; where start_date is in the format
10/25/04; the output end_date should be in the same format as well. I
was not successful loading the Date::Calc module from CSPAN on
ActivePerl 5 (Revision 5, ve
On Fri, 15 Oct 2004, Li, Aiguo (NIH/NCI) wrote:
> Is it possible to create graphs like this using perl?
>
> The graph in my mind should look like this and it will be better to
> use histogram bar for meta p-values.
>
>
> ---|
> --|
>|
> -|
Interesting -- that's not one of the t
Wiggins d Anconia wrote:
>> Folks,
>>
>> I've run into a couple of issues with use and was hoping someone
>> could help me come up with a solution.
>>
>> First, I use a specific module in a work environment to set some
>> global variables. I want to re-use my code in another environment
>> which
> Folks,
>
> I've run into a couple of issues with use and was hoping someone could
> help me come up with a solution.
>
> First, I use a specific module in a work environment to set some global
> variables. I want to re-use my code in another environment which doesn't
> have the specific configu
Gohaku wrote:
1.) What's up with the semicolon at the end of the first
delimiter? I find that confusing.
If you prefer, you can put the semicolon after the terminator in Perl
as well, as long as you don't put it at the same line as the
terminating string. By doing so, it's easier to preserve inde
On 7/17/2004 2:08 AM, gohaku wrote:
Hello everyone,
After months of searching perl documentation and books,
I finally found out what those "<<" are called.
What's strange is that I found my answer in a PHP book!
Having seen heredocs in a php script first,
I find Perl's syntax very confusing.
The fo
[EMAIL PROTECTED] wrote:
All,
I was playing with my code and after re-reading perdoc perlre, I still do
not understand the items in yellow and their need.
items in yellow???
here is my code.
open(F,"$ARGV[0]") || die "dick face: $!\n";
$i=0;
print "-w '";
#print $i;
while () {
chomp($_);
>Give us another chance...
For what it's worth, "giving up" on the list this early in the
game doesn't impress me very much. If someone wants to be that
close-minded [1] without further investigation [2], then good
riddance - they're not gonna make good programmers, so why waste
our time [3] tryin
Ned Cunningham wrote:
Hey don't go. Some times people get cranky.
There are still a lot of smart people that are willing to help here.
Just ignore the not so smart ones ;)
...
And especially those MUAs which refuse to chop off the
freaking LONG footers... Oh well... I am not even gonna
start a
Luinrandir Hernsen wrote:
Hey
What ever I did I'm sorry. Obvisious ly it upset someone...
I'm gone.. you guys are way to uptight about little shit
Well, I wasn't speaking about you - only
to Sun Microsystems...
Give us another chance...
--
http://www.usenix.org/publications/perl/
--
To unsubs
riginal Message-
From: Luinrandir Hernsen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 12:30 PM
To: [EMAIL PROTECTED]
Subject: Re: Questions about game design in perl
Hey
Hey
What ever I did I'm sorry. Obvisious ly it upset someone...
I'm gone.. you guys are way to uptight about little shit
L Hernsen
- Original Message -
From: "WC -Sx- Jones" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004
Morbus Iff wrote:
I suspect a good amount of people have no clue
the purpose of a Message-ID/References, much less how
replying to the wrong one (ie. "I don't feel like typing
the To: address myself") and then rewriting the subject
line can cause havoc with archivers and threaders.
Just as bad ar
"R. Joseph Newton" wrote:
> Morbus Iff wrote:
>
> > >I am trying to build a game in perl. I have questions.
> > >This is a story book game... here is the story, make a choice
> > >next page..here is the story, make a choice
> >
> > I'd love to see what you come up with.
> > Games and Perl i
>> I'd love to see what you come up with.
>> Games and Perl is close to my heart.
>
>WTF does this have to do with the confusion
>between NULL and Perl's udef [New To
>Perl], the thread on which you replied?
I suspect a good amount of people have no clue
the purpose of a Message-ID/References, much
Morbus Iff wrote:
> >I am trying to build a game in perl. I have questions.
> >This is a story book game... here is the story, make a choice
> >next page..here is the story, make a choice
>
> I'd love to see what you come up with.
> Games and Perl is close to my heart.
WTF does this have t
Luinrandir Hernsen wrote:
I went to www.MySQL.com
Do I download for windows and DBI for perl
do I need
Contributed APIs:
DBI -- for connecting to MySQL from Perl
I downloaded MySQL 4.0
Your MySQL database should be installed and
functioning on Unix then.
I have OptiPerl, which I use top write per
gt;
Cc: "Perl Beginners" <[EMAIL PROTECTED]>
Sent: Tuesday, April 06, 2004 4:48 PM
Subject: Re: More Details --- Re: Questions about game design in perl
> Let's keep this discussion on the list so all can learn and help.
>
> On Apr 6, 2004, at 3:08 PM, Lu
Hallo
Hello
I am trying to build a game in perl. I have questions.
This is a story book game... here is the story, make a choice
next page..here is the story, make a choice
cool
1-Do I set up the login file (password name and your game details)
in one big file, or in many files, one file per
: <[EMAIL PROTECTED]>
Sent: Tuesday, April 06, 2004 3:26 PM
Subject: Re: Questions about game design in perl
On Apr 6, 2004, at 2:11 PM, Luinrandir Hernsen wrote:
Hallo
Howdy.
I am trying to build a game in perl. I have questions.
This is a story book game... here is the story, make a choice
Luinrandir Hernsen wrote:
1-Do I set up the login file (password name and your game details)
in one big file, or in many files, one file per player?
Have you seen PostgresSQL and Bricolage?
Maybe at least a good templatingsystem?
I would only use one file per play for config data
on each player -
On Apr 6, 2004, at 2:11 PM, Luinrandir Hernsen wrote:
Hallo
Howdy.
I am trying to build a game in perl. I have questions.
This is a story book game... here is the story, make a choice
next page..here is the story, make a choice
Are we talking Interactive Fiction, or where you referring to act
>I am trying to build a game in perl. I have questions.
>This is a story book game... here is the story, make a choice
>next page..here is the story, make a choice
I'd love to see what you come up with.
Games and Perl is close to my heart.
>1-Do I set up the login file (password name and your g
Pablo Fischer wrote:
> Thanks!
>
> After sending my question I found in a website the topic of 'private' methods,
> and shows code like this:
>
> my $method_name = sub {
> my $this = shift;
>
> _blablabla_
> };
>
> And to access it :
>
> $this->$method_name("Arg1");
>
> Now, this it really
On Fri, Aug 08, 2003 at 12:05:47AM + Pablo Fischer wrote:
> I have some questions about OOP in Perl.
>
> 1. In my class I have lot of methods, but some of them just parse a file or
> pass a string to a different format (like in C, Im thinking that they are
> private), In perl, whats the bet
On Wednesday, August 13, 2003, at 12:34 AM, R. Joseph Newton wrote:
Pablo Fischer wrote:
Thanks!
After sending my question I found in a website the topic of 'private'
methods,
and shows code like this:
my $method_name = sub {
my $this = shift;
_blablabla_
};
And to access it :
$this-
Thanks!
After sending my question I found in a website the topic of 'private' methods,
and shows code like this:
my $method_name = sub {
my $this = shift;
_blablabla_
};
And to access it :
$this->$method_name("Arg1");
Now, this it really works for 'private' methods?
Thanks!
--
Pa
42 matches
Mail list logo