RE: Quick Perl on Windows Newbie Questions

2004-05-05 Thread Tim Johnson
See answers below. -Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 12:30 PM To: [EMAIL PROTECTED] Subject: Quick Perl on Windows Newbie Questions Hello ActiveState ActivePerl users (any on this list?) :) I have a couple quick questions

Re: Quick Perl on Windows Newbie Questions

2004-05-05 Thread JupiterHost.Net
Tim Johnson wrote: See answers below. Thanks Tim! -Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 12:30 PM To: [EMAIL PROTECTED] Subject: Quick Perl on Windows Newbie Questions Hello ActiveState ActivePerl users (any on this list?) :) I

RE: About Asking Stupid Questions Myself Included.

2002-04-25 Thread Ron Powell
Now, I'm nervous about posting my (typically stupid) questions to the list! :) Ron Crud. Now I have to be equally nervous about posting replies that really have no value. -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25

Re: Afew questions and request for help.

2001-08-23 Thread Michael Kelly
On 8/23/01 6:29 PM, Duston S. Horacek wrote: > > Hello, I'm looking to make a script that will load data into text boxes on a > web page from a file off the web host, and then allow other text boxes to be > modified by the user, then resaved to the same file.. > > For instance > > WEB PAGE LOA

RE: Afew questions and request for help.

2001-08-23 Thread Duston S. Horacek
ok, say the web page looks something like this (Very simple) http://www.excelgames.com/sample2.htm goto that and look it over it gicves a visual example of what I'm trying to do. As for what type or format of file, it doesn't matter as I haven't made it yet, as long as the same file can be read

Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Steven M. Klass
Hi all, Let's start off with some simple code.. my $arg = &SomeFunction ( my @arry = qw/one two three/) sub SomeFunction { my @array = @_[0]; for (my $i =0; i < @array; i ++ ) { print "$array[0][$i] } } Ok now I understand what the problem is, but I don'

Re: two questions on my perl exam.

2008-10-21 Thread Chas. Owens
On Tue, Oct 21, 2008 at 08:49, birdinforest <[EMAIL PROTECTED]> wrote: > I am a student and enrolled Unix programing this semester. > There are two questions relating to perl I can not work out in the > last exam ( Actually I have write out my code, however the exam system > m

Re: two questions on my perl exam.

2008-10-21 Thread Rob Dixon
birdinforest wrote: > > I am a student and enrolled Unix programing this semester. > There are two questions relating to perl I can not work out in the > last exam ( Actually I have write out my code, however the exam system > marked it as "wrong"). Please help me to po

Re: two questions on my perl exam.

2008-10-21 Thread Chas. Owens
On Tue, Oct 21, 2008 at 10:43, Rob Dixon <[EMAIL PROTECTED]> wrote: snip snip > use strict; > use warnings; > > print join('', "@ARGV" =~ /[0-9]/g), "\n"; snip The perl interpreter in my brain throws a syntax error on the line 4 character 15. Since you have put your code out there here is mine

Re: two questions on my perl exam.

2008-10-21 Thread John W. Krahn
birdinforest wrote: I am a student and enrolled Unix programing this semester. There are two questions relating to perl I can not work out in the last exam ( Actually I have write out my code, however the exam system marked it as "wrong"). Please help me to point out the fau

Re: two questions on my perl exam.

2008-10-21 Thread birdinforest
Thanks for your suggestions and all of them make sense. However, since I am a totally beginner never learned programing, it should take me sometime to understand them clearly. I will also try to get answer from my lecturer, then post here that what I have learned from both questions. Programing

A questions about how to split files

2009-01-15 Thread Li, Aiguo (NIH/NCI) [E]
H all, I need to split a file containing three columns of data as shown below into three separate files. Each split file should contain row names and one column of data and the column name should be the file names. Is there any perl advanced function that allow me to do this? probe set E

Need email list for Perl/Tk questions

2010-02-04 Thread Tony Esposito
Besides this forum, does anyone know of a good Perl/Tk email list/forum in which to ask questions about Perl/Tk?

Apache ate my hard drive! (and questions)

2007-07-18 Thread Inventor
my little hard drive fast! Fortunately the problem was caught in time and easily fixed. It only took a few hours to delete the error file and clean up the code, and now the program runs much faster as well. Whew! I hope you got a chuckle out of that little adventure. Now to my questions.

Re: follow-up questions on Mail::Send

2005-11-16 Thread Bob Showalter
ZHAO, BING wrote: But for Mail::Send, I downloaded this huge file MailTools-1.67. I dug several modules out like Send.pm, Mailer.pm etc and saved them in the current directory. Well, that's not how you install modules. Read the README inside the MailTools tarball. And read perldoc perlmodinsta

RE: follow-up questions on Mail::Send

2005-11-16 Thread Ryan Frantz
> -Original Message- > From: ZHAO, BING [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 16, 2005 3:26 PM > To: beginners@perl.org > Subject: follow-up questions on Mail::Send > > Hi, > I have used small single package named as X.pm befor

Re: follow-up questions on Mail::Send

2005-11-16 Thread ZHAO, BING
Oh, I indeed did what you'll just told me to do: 1. I first downloaded this MailTools-1.67.tar.gz 2. ungziped it 3. cd MailTools-1.67 4. Moreed Readme, followed the instructions, until the last step, "make install" failed, still lots of files including a lib/ were generated. 5. Tried to run my fi

Re: follow-up questions on Mail::Send

2005-11-16 Thread Bob Showalter
ZHAO, BING wrote: Oh, I indeed did what you'll just told me to do: 1. I first downloaded this MailTools-1.67.tar.gz 2. ungziped it 3. cd MailTools-1.67 4. Moreed Readme, followed the instructions, until the last step, "make install" failed, still lots of files including a lib/ were generated.

RE: follow-up questions on Mail::Send

2005-11-16 Thread Ryan Frantz
> -Original Message- > From: ZHAO, BING [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 16, 2005 4:09 PM > To: beginners@perl.org > Subject: Re: follow-up questions on Mail::Send > > Oh, I indeed did what you'll just told me to do: > 1. I first d

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

2004-08-31 Thread Ed Christian
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 configuration module. I

Re: Questions related to draw graphy using perl

2004-10-15 Thread Chris Devers
e: <http://bioperl.org/mailman/listinfo/bioperl-l> Archives: <http://bioperl.org/pipermail/bioperl-l/> Subscribe / Unsubscribe: <http://bioperl.org/mailman/listinfo/bioperl-l> But that said, if you get no help over there, by all means ask away on this list. I'm ce

Re: DBI, Win32::ODBC, encrypted file, udl questions

2002-08-29 Thread Roger Perttu
; >... > >or > >use Win32::ODBC; >$data = new Win32::ODBC("DSN = teradata1; UID=uname; PWD=moo;"); >... > >My questions are: > >(1) How do I create an encrypted file to store "moo", open that file and >pass "moo" to t

[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

Help find info for CPAN update config questions

2004-01-01 Thread J Ingersoll
you designate repository mirror sites, and so on). Will be glad to provide error messages, but wish to read up first if possible. On the specifics of the questions, do they really want the host name of the box i'm on? Ok [EMAIL PROTECTED], but is that needed? And, i'm accessing thru a

Re: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Steven M. Klass
how does "shift" work? In other words what if I do this &Somefunction($var1, \@arry) sub SomeFunction { my $var = $_[0] my $array = shift; foreach(@{$array}) { print "$_\n"; } } How does the shift operator know which is which? I called it specificall

RE: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Timothy Johnson
. McCoy Cc: [EMAIL PROTECTED] Subject: Re: Arrays 1x3 or 3x1 - The real questions how does "shift" work? In other words what if I do this &Somefunction($var1, \@arry) sub SomeFunction { my $var = $_[0] my $array = shift; foreach(@{$array}) {

Re: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Tanton Gibbs
if you write my $var2 = shift; then $var2 will be an array reference to @arry. HTH, Tanton - Original Message - From: "Steven M. Klass" <[EMAIL PROTECTED]> To: "Brett W. McCoy" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, February

Re: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Jeff 'japhy' Pinyan
On Feb 12, Steven M. Klass said: >&Somefunction($var1, \@arry) > >sub SomeFunction { > my $var = $_[0];# XXX you were missing a ; here > my $array = shift; Uh, $array and $var have the same value now. shift() removes the first element from an array (defaulting to @_) and returns

Re: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Steven M. Klass
> After that, if you write > my $var2 = shift; > then $var2 will be an array reference to @arry. > > HTH, > Tanton > - Original Message - > From: "Steven M. Klass" <[EMAIL PROTECTED]> > To: "Brett W. McCoy" <[EMAIL PROTECTED]> > Cc:

TIMTOWDI Was: RE: some questions about for, foreach

2002-03-01 Thread Dennis G. Wicks
It is really sad when people can't get their MLA (Multi-Letter Acronym) correct! It should be TIMTOWTDI "There Is More Than One Way To Do It" which is the Perl Hackers motto. Good Luck! Dennis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Sort of Conceptual, Syntax, and modules related questions

2002-03-22 Thread Connie Chan
Dear All, I have sort of questions, would you please give me some hint, even refering me to a perldoc would be nice too. 1. When I open a text file with *lines, however, I just want to read the first line, would this be a good idea ? open (FILE, "textfile.txt"); $firstline = ; c

Re: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Brett W. McCoy
On Tue, 12 Feb 2002, Steven M. Klass wrote: > Let's start off with some simple code.. > > my $arg = &SomeFunction ( my @arry = qw/one two three/) > > > > sub SomeFunction { > my @array = @_[0]; No, you are only grabbing the first element of @_. You should either pass the array as a refere

Re: Arrays 1x3 or 3x1 - The real questions

2002-02-12 Thread Jonathan E. Paton
Hi all, > Let's start off with some simple code.. > > my $arg = &SomeFunction ( my @arry = qw/one two three/) > > sub SomeFunction { > my @array = @_[0]; > for (my $i =0; i < @array; i ++ ) { > print "$array[0][$i] > } > } > > Ok now I understand what the problem is, but I don't > know

Re: Need email list for Perl/Tk questions

2010-02-04 Thread Paul Johnson
On Thu, Feb 04, 2010 at 10:22:00PM +, Tony Esposito wrote: > Besides this forum, does anyone know of a good Perl/Tk email list/forum in > which to ask questions about Perl/Tk? https://mailman.stanford.edu/mailman/listinfo/ptk It's rather quiet, so be patient. -- Paul

Re: Need email list for Perl/Tk questions

2010-02-04 Thread Owen
> Besides this forum, does anyone know of a good Perl/Tk email > list/forum in which to ask questions about Perl/Tk? You can try comp.lang.perl.tk which is fairly quiet -- Owen -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: begin

Re: Apache ate my hard drive! (and questions)

2007-07-18 Thread Rob Dixon
Inventor wrote: [snip Apache tragedy] My program accesses small text configuration files, allowing the user to change them with a CGI interface before writing them out and doing its compute thing. The problem is that each user needs to have their own set of configuration files so that the us

Re: Apache ate my hard drive! (and questions)

2007-07-18 Thread Jeff Pang
w > hours to delete > the error file and clean up the code, and now the > program runs much > faster as well. Whew! I hope you got a chuckle out > of that little > adventure. Now to my questions. Glad to hear that you've resolved it. When you put 'use strict' and

Re: Apache ate my hard drive! (and questions)

2007-07-18 Thread Mr. Shawn H. Corey
that were eating up my little hard drive fast! Fortunately the problem was caught in time and easily fixed. It only took a few hours to delete the error file and clean up the code, and now the program runs much faster as well. Whew! I hope you got a chuckle out of that little adventure. Now to my

Module questions (perhaps a module creation mini-tutorial)

2005-03-25 Thread Peter Rabbitson
Hello list, I am trying to make my own modules for some tasks, and I am trying to grasp the basics before I go any further. Here is a dumb test module that I wrote just to see how things are done - it takes an array of 3 values and adds them together, returning the values on request. ### 3-e

Perl syntax questions from source code in queue.pm

2005-05-18 Thread Siegfried Heintze
I'm looking at the source code for queue.pm and I'm quite surprised at how short it is. I have some questions about the syntax. (1) What does this colon (": shared") mean on line 69? I have not seen a colon used like this before. 67 sub new { 68 my $class =

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 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: Help find info for CPAN update config questions

2004-01-03 Thread Owen
On Thu, 1 Jan 2004 05:18:00 -0800 (PST) J Ingersoll <[EMAIL PROTECTED]> wrote: > IS THERE a manual / document somewhere that explains in a little > detail what is being asked in this config process? perldoc CPAN That will answer all your questions -- Owen -- To unsubsc

Re: Help find info for CPAN update config questions

2004-01-03 Thread J Ingersoll
perldoc CPAN > > That will answer all your questions > > > -- > Owen > Thanks and sorry for my somewhat inexact post initially (frustration :^{ Regarding running perl -MCPAN -e 'install Bundle::CPAN' ... In my perl 5.6.1 system, after switching from a sudo'

Re: Help find info for CPAN update config questions

2004-01-03 Thread Daniel Staal
--As off Saturday, January 3, 2004 3:41 PM -0800, J Ingersoll is alleged to have said: (Snipped) As for my request for documentation, it was mainly for --- Q: Should all FTP connections be passive (y|n) ? One way visibility ... So for these types of firewall FTP connec-

Re: Help find info for CPAN update config questions

2004-01-05 Thread J Ingersoll
--- Daniel Staal <[EMAIL PROTECTED]> wrote: > > --As for the rest, it is mine. > > Well, if you are having problems I'd say yes. ;-) > > FTP has issues with firewalls. (The design doesn't work well with > them.) If you are behind a firewall you probably only can do > 'passive' ftp. Eithe

Re: TIMTOWDI Was: RE: some questions about for, foreach

2002-03-01 Thread Brett W. McCoy
On Fri, 1 Mar 2002, Dennis G. Wicks wrote: > It is really sad when people can't get their MLA > (Multi-Letter Acronym) correct! > > It should be TIMTOWTDI > > "There Is More Than One Way To Do It" I prefer http://www.chapelperilous.net/ -

Re: TIMTOWDI Was: RE: some questions about for, foreach

2002-03-01 Thread Brett W. McCoy
On Fri, 1 Mar 2002, Brett W. McCoy wrote: > On Fri, 1 Mar 2002, Dennis G. Wicks wrote: > > > It is really sad when people can't get their MLA > > (Multi-Letter Acronym) correct! > > > > It should be TIMTOWTDI > > > > "There Is More Than One Way To Do It" > > I prefer Err, ignore that... I h

RE: TIMTOWDI Was: RE: some questions about for, foreach

2002-03-01 Thread John Edwards
Yeah, yeah. So I made a typo. :p -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 01 March 2002 18:00 To: [EMAIL PROTECTED] Subject: TIMTOWDI Was: RE: some questions about for, foreach It is really sad when people can't get their MLA (Multi-Letter Ac

Re: Sort of Conceptual, Syntax, and modules related questions

2002-03-22 Thread Michael Fowler
I've removed [EMAIL PROTECTED] from the Cc: list. I don't see how any of this directly relates to CGI. Please avoid cross-posting unless relevant and absolutely necessary. On Sat, Mar 23, 2002 at 05:30:25AM +0800, Connie Chan wrote: > 1. When I open a text file with *lines, however, I just wan

RE: Sort of Conceptual, Syntax, and modules related questions

2002-03-22 Thread Timothy Johnson
sentence =~ s/one/two/gi; #$sentence is now "two must always watch what two says in public." or $sentence =~ s/one/two/i; #$sentence is now "two must always watch what one says in public." 8. Not sure on this one. 9. Check CPAN http://search.cpan.org Whew! Good questions. I

RE: Sort of Conceptual, Syntax, and modules related questions

2002-03-22 Thread Timothy Johnson
Oops! The exclamation point in number 7 was a typo. -Original Message- From: Timothy Johnson To: 'Connie Chan '; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: 3/22/02 1:59 PM Subject: RE: Sort of Conceptual, Syntax, and modules related questions 1. It will only read the

Re: Sort of Conceptual, Syntax, and modules related questions

2002-03-23 Thread Dave Storrs
Hi Connie, > On Sat, Mar 23, 2002 at 05:30:25AM +0800, Connie Chan wrote: > > 1. When I open a text file with *lines, however, I just want to read the > > first line, would this be a good idea ? open (FILE, "textfile.txt"); > > $firstline = ; close (FILE); would this process run till EOF, or > >

Explanation of a Cookbook script and some further questions

2001-11-09 Thread Robert Thompson
Hello, I am looking at the "Insert comma's into a number" script in Oreily's Perl Cookbook (pg 64) and have some questions. The script (more or less) is below followed by some output and questions: #!/usr/bin/perl my $num = reverse $ARGV[0];

Re: Module questions (perhaps a module creation mini-tutorial)

2005-03-25 Thread Jeff 'japhy' Pinyan
On Mar 25, Peter Rabbitson said: package CalcTest; use warnings; use strict; my @collect; This is suspect. You shouldn't be using this array. You should be storing data in your object. 1; It's probably safer to put this at the very end of your module, just in case you have other code (non-subr

Re: Perl syntax questions from source code in queue.pm

2005-05-18 Thread John W. Krahn
Siegfried Heintze wrote: I'm looking at the source code for queue.pm Perl is case sensitive so that should be Queue.pm. and I'm quite surprised at how short it is. I have some questions about the syntax. (1) What does this colon (": shared") mean on line 69? I have not se

RE: Perl syntax questions from source code in queue.pm

2005-05-19 Thread Siegfried Heintze
Problem with Thread::Queue fixed. The sample program for Thread::Queue is incorrect (or maybe I just missed the ":shared" when declaring variable @Q). Well it is definitely incorrect in Larry's book: Programming Perl, 3rd Edition. Do they need a volunteer to update the documentation? This works f

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: 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: 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: Explanation of a Cookbook script and some further questions

2001-11-09 Thread Jeff 'japhy' Pinyan
On Nov 9, Robert Thompson said: >I am looking at the "Insert comma's into a number" script in >Oreily's Perl Cookbook (pg 64) and have some questions. The script (more >or less) is below followed by some output and questions: You copied it incorrectly, o

Re: Explanation of a Cookbook script and some further questions

2001-11-09 Thread Etienne Marcotte
ript in > >Oreily's Perl Cookbook (pg 64) and have some questions. The script (more > >or less) is below followed by some output and questions: > > You copied it incorrectly, or there is a typo in the book: > > > $num =~ s/([0-9]{3}) (?=\d) (?!=\d*\.)/$1,/

Re: Explanation of a Cookbook script and some further questions

2001-11-09 Thread Robert Thompson
> I knew Jeff would be the first one answering this one, too bad I could not bet on >this. I felt it would have been too obligatory if I had opened the e-mail "Dear Mr. Pinyan," :) > > You copied it incorrectly, or there is a typo in the book: You're right, I typed it wrong. I am learning ex

Re: Explanation of a Cookbook script and some further questions

2001-11-09 Thread Jeff 'japhy' Pinyan
On Nov 9, Robert Thompson said: >I felt it would have been too obligatory if I had opened the e-mail >"Dear Mr. Pinyan," :) Heehee. :) Honestly, though, I'm only this good so that other people can be good. It does the Perl community no good to have a handful of illuminati -- if they become ina

Two questions about split and map in a cookbook recipe

2008-11-17 Thread Telemachus
the outer {} to create the hash reference?!?) Sorry if this is very long. I wanted to make sure to include enough information to make the questions clear. Thanks in advance, Telemachus -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

2 questions please, one on scope and one on regex

2008-12-22 Thread Eric Krause
Hello all, I have two quick questions that I would love some help on. I have looked at the manual (Programming Perl) and I didn't get it, hence my email. Question 1 - How can I make variables in a function (subroutine) global (accessible from other functions)? Question 2 - I am tryi

Re: Sort of Conceptual, Syntax, and modules related questions + Follow Up

2002-03-25 Thread Connie Chan
r that sub ? Addition Questions : 1. Is that anyway to do a "random write", while I can use tell and seek for random read. Note that I am not dealing with Database, just handling a simple huge text file about 500MB. If there is such method, is that a Overwirte activity or a Insert ac

Posting Perl Questions - was Re: Advanced Users in The Beginners List

2002-06-29 Thread drieux
On Saturday, June 29, 2002, at 11:16 , Ronnie Livingston wrote: > I have a question though, will someone still be able to post to the list > if they are no longer subscribed to them?? An Interesting problem - What I do is have my mail filter my lists into the requisite folders and then go at t

Re: Posting Perl Questions - was Re: Advanced Users in The BeginnersList

2002-06-29 Thread Tirthankar C. Patnaik
> On Saturday, June 29, 2002, at 11:16 , Ronnie Livingston wrote: > > > I have a question though, will someone still be able to post to the list > > if they are no longer subscribed to them?? > > An Interesting problem - > > What I do is have my mail filter my lists into the requisite folder

Re: Two questions about split and map in a cookbook recipe

2008-11-17 Thread John W. Krahn
n parentheses (forcing the items to be treated as a list?) and you can't use {} because of the outer {} to create the hash reference?!?) Sorry if this is very long. I wanted to make sure to include enough information to make the questions clear. Another way to the same thing would be: $/ =

Re: Two questions about split and map in a cookbook recipe

2008-11-17 Thread Telemachus
_of_Records. The filter > /(.*)/ ensures that no newlines are included in the keys or values of > the hash. Thanks for your careful explanation. I was just in the process of writing that I had worked out that the map keeps newlines out. I'll push my luck and ask two further question

Re: Two questions about split and map in a cookbook recipe

2008-11-17 Thread Chas. Owens
On Mon, Nov 17, 2008 at 13:21, John W. Krahn <[EMAIL PROTECTED]> wrote: snip >> push(@Array_of_Records, { map /(.*)/, @fields }); > > Store the fields as a hash at the end of @Array_of_Records. The filter > /(.*)/ ensures that no newlines are included in the keys or values of the > hash. snip

Re: Two questions about split and map in a cookbook recipe

2008-11-17 Thread John W. Krahn
r your careful explanation. I was just in the process of writing that I had worked out that the map keeps newlines out. I'll push my luck and ask two further questions. First, what exactly is the "null field" at the start of my first line, or where does it come from? split always (un

Re: 2 questions please, one on scope and one on regex

2008-12-22 Thread Mr. Shawn H. Corey
On Mon, 2008-12-22 at 15:18 -0700, Eric Krause wrote: > Hello all, > I have two quick questions that I would love some help on. I have looked > at the manual (Programming Perl) and I didn't get it, hence my email. > > Question 1 - How can I make variables in a function

Re: 2 questions please, one on scope and one on regex

2008-12-22 Thread John W. Krahn
Eric Krause wrote: Hello all, Hello, I have two quick questions that I would love some help on. I have looked at the manual (Programming Perl) and I didn't get it, hence my email. Question 1 - How can I make variables in a function (subroutine) global (accessible from other func

RE: Posting Perl Questions - was Re: Advanced Users in The Beginners List

2002-06-29 Thread Timothy Johnson
tems about something you don't care about just to find out if someone responded to your message. -Original Message- From: Tirthankar C. Patnaik To: drieux Cc: [EMAIL PROTECTED] Sent: 6/29/02 11:18 PM Subject: Re: Posting Perl Questions - was Re: Advanced Users in The Beginners List >

Re: Posting Perl Questions - was Re: Advanced Users in The Beginn ers List

2002-06-30 Thread drieux
On Saturday, June 29, 2002, at 11:26 , Timothy Johnson wrote: [..] > For those of you using Outlook (you know who you are, that's right, you in > the red shirt), [..] actually there are a Lot of folks who have a lot of really good email application - and/or have even more interesting 'adult' sty

I am clueless about making my test generator program to generate random questions.... Help

2002-03-22 Thread FLAHERTY, JIM-CONT
I have a script that generates test questions and grades them . I was asked to make them generate in a random order , can someone point me in the right direction They come in two files make_test.cgi and grade.cgi #! /usr/bin/perl # #make test for Cram Program # # version

RE: I am clueless about making my test generator program to generate random questions.... Help

2002-03-22 Thread Nikola Janceski
M-CONT [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 22, 2002 1:51 PM > To: Jim (E-mail); Beginners (E-mail) > Subject: I am clueless about making my test generator program to > generate random questions Help > > > I have a script that generates test questions and grad

I have a script that print test questions and grades them... how do I make them print a random order

2002-03-27 Thread FLAHERTY, JIM-CONT
I have a script that print test questions and grades them... how do I make them print a random order, and a certain amount ?? code $dbh =DBI ->connect($data_source, $username, $password) or die "cant connect to $data_source : my $dbh-> errstr\n";

<    1   2   3   4   5