Re: Questions about CGI

2018-06-06 Thread Jim Gibson
> 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

Re: Questions about optmodel constraints

2010-11-21 Thread Uri Guttman
> "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

Re: Questions on perl?

2008-08-29 Thread Rob Dixon
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

Re: questions from Learning Perl

2008-04-14 Thread Randal L. Schwartz
> "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

Re: questions from Learning Perl

2008-04-13 Thread Chas. Owens
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

Re: questions from Learning Perl

2008-04-13 Thread brian d foy
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

Re: questions from Learning Perl

2008-04-13 Thread brian d foy
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

Re: questions from Learning Perl

2008-04-07 Thread Jay Savage
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

Re: questions from Learning Perl

2008-04-06 Thread Chas. Owens
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-

Re: questions from Learning Perl

2008-04-06 Thread Gunnar Hjalmarsson
[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

RE: questions

2004-10-26 Thread Charles K. Clarkson
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

RE: questions

2004-10-26 Thread Bob Showalter
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

Re: questions

2004-10-26 Thread M. Ilyas Hassan
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

Re: questions

2004-10-25 Thread Chris Devers
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 --

Re: questions

2004-10-25 Thread JupiterHost.Net
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:

Re: questions

2004-10-25 Thread Gunnar Hjalmarsson
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

Re: Questions related to draw graphy using perl

2004-10-15 Thread Chris Devers
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

RE: Questions regarding use: "optional" modules, and "refreshing" modules

2004-08-31 Thread Ed Christian
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

Re: Questions regarding use: "optional" modules, and "refreshing" modules

2004-08-31 Thread Wiggins d Anconia
> 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

Re: questions about heredocs

2004-07-17 Thread Gunnar Hjalmarsson
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

Re: questions about heredocs

2004-07-16 Thread Randy W. Sims
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

Re: questions and understanding

2004-06-30 Thread Randy W. Sims
[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($_);

[OT] Re: Questions about game design in perl

2004-04-07 Thread Morbus Iff
>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

Re: Questions about game design in perl

2004-04-07 Thread WC -Sx- Jones
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

Re: Questions about game design in perl

2004-04-07 Thread WC -Sx- Jones
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

RE: Questions about game design in perl

2004-04-07 Thread Ned Cunningham
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

Re: Questions about game design in perl

2004-04-07 Thread Luinrandir Hernsen
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

Re: Questions about game design in perl

2004-04-07 Thread WC -Sx- Jones
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

Re: Questions about game design in perl

2004-04-07 Thread R. Joseph Newton
"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

Re: Questions about game design in perl

2004-04-07 Thread Morbus Iff
>> 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

Re: Questions about game design in perl

2004-04-07 Thread R. Joseph Newton
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

Re: More Details --- Re: Questions about game design in perl

2004-04-06 Thread WC -Sx- Jones
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

Re: More Details --- Re: Questions about game design in perl

2004-04-06 Thread Luinrandir Hernsen
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

Re: Questions about game design in perl

2004-04-06 Thread JupiterHost.Net
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

Re: More Details --- Re: Questions about game design in perl

2004-04-06 Thread James Edward Gray II
: <[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

Re: Questions about game design in perl

2004-04-06 Thread WC -Sx- Jones
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 -

Re: Questions about game design in perl

2004-04-06 Thread James Edward Gray II
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

Re: Questions about game design in perl

2004-04-06 Thread Morbus Iff
>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

Re: Questions of OOP in Perl

2003-08-14 Thread R. Joseph Newton
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

Re: Questions of OOP in Perl

2003-08-14 Thread Tassilo von Parseval
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

Re: Questions of OOP in Perl

2003-08-14 Thread James Edward Gray II
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-

Re: Questions of OOP in Perl

2003-08-09 Thread Pablo Fischer
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