Re: Basic question on arrays $ vs @

2011-05-31 Thread Chris Nehren
On Wed, May 25, 2011 at 13:15:49 -0400 , Tim Lewis wrote: > This is a very basic question on arrays and referring to the elements. In > referring to the elements, I know that it is correct practice to use $ > instead of @, but I know that Perl allows the @. My simple question is what

RE: Basic question on arrays $ vs @

2011-05-25 Thread Tim Lewis
Thanks Uri. That makes perfect sense. -Original Message- From: Uri Guttman [mailto:u...@stemsystems.com] Sent: Wednesday, May 25, 2011 1:37 PM To: Tim Lewis Cc: beginners@perl.org Subject: Re: Basic question on arrays $ vs @ >>>>> "TL" == Tim Lewis writes:

Re: Basic question on arrays $ vs @

2011-05-25 Thread Uri Guttman
>>>>> "TL" == Tim Lewis writes: TL> This is a very basic question on arrays and referring to the TL> elements. In referring to the elements, I know that it is correct TL> practice to use $ instead of @, but I know that Perl allows the @. TL> My simp

Basic question on arrays $ vs @

2011-05-25 Thread Tim Lewis
This is a very basic question on arrays and referring to the elements. In referring to the elements, I know that it is correct practice to use $ instead of @, but I know that Perl allows the @. My simple question is what is the difference. I have looked at different Perl tutorials, but have not

Re: Windows - Perl - Cygwin - Basic Question

2008-12-19 Thread Rob Dixon
Chas. Owens wrote: > On Fri, Dec 19, 2008 at 11:07, Rex wrote: > >> 2) How do I know about the modules already installed? (in ActivePerl, >> I do, "ppm query") > > perl -MModule::Name -e 0 > > If you get an error then the module isn't installed perl -mExtUtils::Installed -e "print map qq($_\

Re: Windows - Perl - Cygwin - Basic Question

2008-12-19 Thread Rob Dixon
Rex wrote: > > Thanks a lot for a lucid response, Chas. Following your advice, I was > able to successfully install DBI on my work laptop (XP), but not on my > home machine (Vista x64 Home Premium). > > However, even in my XP box, I am unable to install DBD::Oracle. > > When I issued the followin

Re: Windows - Perl - Cygwin - Basic Question

2008-12-19 Thread Rex
Chas: I do have Oracle client libraries installed -- version 10.2.0.3 (10gR2). What should I do to make DBD::Oracle installer (or) Cygwin shell realize that I do have Oracle client libraries? The Oracle client is there in the path through my Environmental Variables of the system. C:\>sqlplus use

Re: Windows - Perl - Cygwin - Basic Question

2008-12-19 Thread Chas. Owens
On Fri, Dec 19, 2008 at 14:04, Rex wrote: > Thanks a lot for a lucid response, Chas. Following your advice, I was > able to successfully install DBI on my work laptop (XP), but not on my > home machine (Vista x64 Home Premium). > > However, even in my XP box, I am unable to install DBD::Oracle. sn

Re: Windows - Perl - Cygwin - Basic Question

2008-12-19 Thread Rex
Thanks a lot for a lucid response, Chas. Following your advice, I was able to successfully install DBI on my work laptop (XP), but not on my home machine (Vista x64 Home Premium). However, even in my XP box, I am unable to install DBD::Oracle. When I issued the following command: cpan DBD::Oracl

Re: Windows - Perl - Cygwin - Basic Question

2008-12-19 Thread Mr. Shawn H. Corey
On Fri, 2008-12-19 at 11:45 -0500, Chas. Owens wrote: > If you get an error building a module from CPAN, either contact the > author or post the error to this list. > An additional note: some modules require you to install libraries. For example, GD.pm requires libgd.so These must be loaded an

Re: Windows - Perl - Cygwin - Basic Question

2008-12-19 Thread Chas. Owens
On Fri, Dec 19, 2008 at 11:07, Rex wrote: > Pardon me, if this has been already raised. I have experience in > ActivePerl from Activestate. However, I have a Cygwin for Windows, > where Perl 5.10 is installed. I am not familiar with CPAN. I did go > through some stuff at the CPAN site. But, I real

Re: Windows - Perl - Cygwin - Basic Question

2008-12-19 Thread Rex
perldoc perllocal at Cygwin works. It provides me the list of modules installed. On Fri, Dec 19, 2008 at 11:07 AM, Rex wrote: > Pardon me, if this has been already raised. I have experience in > ActivePerl from Activestate. However, I have a Cygwin for Windows, > where Perl 5.10 is installed. I a

Windows - Perl - Cygwin - Basic Question

2008-12-19 Thread Rex
Pardon me, if this has been already raised. I have experience in ActivePerl from Activestate. However, I have a Cygwin for Windows, where Perl 5.10 is installed. I am not familiar with CPAN. I did go through some stuff at the CPAN site. But, I really want to get started on some basic tasks that has

Re: A very basic question

2006-02-10 Thread Avinash Sridhar
Hello again, Thanks for the tip, indeed it is the backquote vs the single quote issue, looked deeper into the program and observed, they did mention to be careful on this. thanks On 2/10/06, Chas Owens <[EMAIL PROTECTED]> wrote: > > On 2/10/06, Avinash Sridhar <[EMAIL PROTECTED]> wrote: > >

Re: A very basic question

2006-02-10 Thread Chas Owens
On 2/10/06, Avinash Sridhar <[EMAIL PROTECTED]> wrote: > Hi Thanks for the reply. I managed to write and execute my perl program. > > Now my next question is , I am following the learning perl Llama book. > > There in Chapter 1, there is a function used whose output is > > perldoc -u -f atan2 > > =

Re: A very basic question

2006-02-10 Thread Avinash Sridhar
> > From: Avinash Sridhar [mailto:[EMAIL PROTECTED] > > Sent: Thursday, February 09, 2006 1:41 PM > > To: beginners@perl.org > > Subject: A very basic question > > > > Hello All, > > > >I just joined this forum today and I dont know whether this

RE: A very basic question

2006-02-10 Thread Brian Volk
> -Original Message- > From: Avinash Sridhar [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 09, 2006 1:41 PM > To: beginners@perl.org > Subject: A very basic question > > Hello All, > >I just joined this forum today and I dont know whether this par

RE: A very basic question

2006-02-09 Thread Toby Stuart
> -Original Message- > From: Avinash Sridhar [mailto:[EMAIL PROTECTED] > Sent: Friday, 10 February 2006 5:41 AM > To: beginners@perl.org > Subject: A very basic question > > > Hello All, > >I just joined this forum today and I dont know whether > th

Re: Continuing the Basic Question

2006-02-09 Thread Avinash Sridhar
> > -Original Message- > > > From: Leif Ericksen [mailto: [EMAIL PROTECTED] > > > Sent: 10 February 2006 11:47 > > > To: John Bruin > > > Cc: 'Avinash Sridhar'; beginners@perl.org > > > Subject: RE: Continuing the Ba

Re: Continuing the Basic Question

2006-02-09 Thread Avinash Sridhar
> To: John Bruin > > Cc: 'Avinash Sridhar'; beginners@perl.org > > Subject: RE: Continuing the Basic Question > > > > On Fri, 2006-02-10 at 11:30 +1300, John Bruin wrote: > > > > -Original Message- > > > > From: Avinash Sridhar

RE: Continuing the Basic Question

2006-02-09 Thread John Bruin
> -Original Message- > From: Leif Ericksen [mailto:[EMAIL PROTECTED] > Sent: 10 February 2006 11:47 > To: John Bruin > Cc: 'Avinash Sridhar'; beginners@perl.org > Subject: RE: Continuing the Basic Question > > On Fri, 2006-02-10 at 11:30 +1300, Joh

Re: Continuing the Basic Question

2006-02-09 Thread Marilyn Sander
On Feb 9, 2006, at 2:18 PM, Avinash Sridhar wrote: Hello, I installed ActivePerl, then wrote up a sample helloworld.pl script, stored it on the desktop, then ran this command from the cmd prompt. C:\Documents and Settings\Administrator> perl C:\Documents and Settings\Administrator\Desktop\ h

RE: Continuing the Basic Question

2006-02-09 Thread Leif Ericksen
On Fri, 2006-02-10 at 11:30 +1300, John Bruin wrote: > > -Original Message- > > From: Avinash Sridhar [mailto:[EMAIL PROTECTED] > > Sent: 10 February 2006 11:18 > > To: beginners@perl.org > > Subject: Continuing the Basic Question > > > > Hello

RE: Continuing the Basic Question

2006-02-09 Thread John Bruin
> -Original Message- > From: Avinash Sridhar [mailto:[EMAIL PROTECTED] > Sent: 10 February 2006 11:18 > To: beginners@perl.org > Subject: Continuing the Basic Question > > Hello, > I installed ActivePerl, then wrote up a sample > helloworld.pl script, sto

Continuing the Basic Question

2006-02-09 Thread Avinash Sridhar
Hello, I installed ActivePerl, then wrote up a sample helloworld.pl script, stored it on the desktop, then ran this command from the cmd prompt. C:\Documents and Settings\Administrator> perl C:\Documents and Settings\Administrator\Desktop\ helloworld.pl i.e., perl \ filename.pl (is this right?)

Re: A very basic question

2006-02-09 Thread Xavier Noria
On Feb 9, 2006, at 19:40, Avinash Sridhar wrote: Hello All, I just joined this forum today and I dont know whether this particular question has been posted before. If it is please do let me know where i can get the answer from. I am using a Windows XP Professional box. Want to learn

A very basic question

2006-02-09 Thread Avinash Sridhar
Hello All, I just joined this forum today and I dont know whether this particular question has been posted before. If it is please do let me know where i can get the answer from. I am using a Windows XP Professional box. Want to learn perl, how do i go about downloading the perl interpreter

Re: Very basic question about running perl cgi on tomcat

2005-04-26 Thread Offer Kaye
On 4/25/05, Robert Kerry wrote: > What should I do? Thank you. > You should use Google :-) The first link returned by searching for "Tomcat" and "Perl": http://www.ftponline.com/javapro/2003_03/online/perl_teden_03_18_03/ HTH, -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: Very basic question about running perl cgi on tomcat

2005-04-25 Thread Robert Kerry
Chris, Thanks. I'm not switching to Apache http server. Unfortunately the same thing happened again. I put the first.pl in the /cgi-bin/ directory and try to access it via http://localhost/cgi-bin/first.pl, it tells me that file not found. I don't know what I should do for httpd.conf file. Thanks

Very basic question about running perl cgi on tomcat

2005-04-25 Thread Robert Kerry
I changed the web.xml file and the .jar suffix as required, and create a new directory WEB-INF/cgi/ under webapps/ directory, I put my first.pl into that directory, and try to visit it using http://localhost:8080/cgi/first.pl but it doesn't work. I've also tried /cgi-bin/first.pl and something else

Re: Basic question

2004-04-04 Thread WC -Sx- Jones
WC -Sx- Jones wrote: Kumar, Praveen (cahoot) wrote: Hi, yes i could solve my problem, but can you let me know what is the difference in using '{' '[' Thank You very much.. {$0} = hash [0] = array Sorry. { indicates a hash [ indicates an array -Sx- Also, maybe I missed it in the th

Re: Basic question

2004-04-03 Thread R. Joseph Newton
"Kumar, Praveen (cahoot)" wrote: > Hello, Hi Praveen.K [Is that what your friends call you in conversation?] > >I am completely new to perl, and i am trying to write a small > script, which based on the input given displays the value in an array. But > when i try to execute the scri

Re: Basic question

2004-04-02 Thread WC -Sx- Jones
Kumar, Praveen (cahoot) wrote: Hi, yes i could solve my problem, but can you let me know what is the difference in using '{' '[' Thank You very much.. {$0} = hash [0] = array Sorry. { indicates a hash [ indicates an array -Sx- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

RE: Basic question

2004-04-02 Thread Kumar, Praveen (cahoot)
c: '[EMAIL PROTECTED]' Subject: Re: Basic question Kumar, Praveen (cahoot) wrote: > print "You are $list{$0}\n"; print "You are " . $list[0] . "\n"; Why - {$0} = hash [0] = array -Sx- .sophos.3.79.04.04. * Internet communicatio

Re: Basic question

2004-04-02 Thread WC -Sx- Jones
Kumar, Praveen (cahoot) wrote: print "You are $list{$0}\n"; print "You are " . $list[0] . "\n"; Why - {$0} = hash [0] = array -Sx- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Basic question

2004-04-02 Thread Kumar, Praveen (cahoot)
Hello, I am completely new to perl, and i am trying to write a small script, which based on the input given displays the value in an array. But when i try to execute the script i somehow fail saying "Use of uninitialized value in concatenation (.) or string at ./pscr1 line 9, line 1."

Re: Basic question...

2003-09-25 Thread R. Joseph Newton
"NIPP, SCOTT V (SBCSI)" wrote: > I posted the other day a question about writing a daemon to monitor > a directory and then process the files as they arrive in said directory. I > will begin working on this shortly, but I have a related question and this I > think is mainly a question of

RE: Basic question...

2003-09-25 Thread Hanson, Rob
SBCSI) [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:27 AM To: [EMAIL PROTECTED] Subject: Basic question... I posted the other day a question about writing a daemon to monitor a directory and then process the files as they arrive in said directory. I will begin work

Basic question...

2003-09-25 Thread NIPP, SCOTT V (SBCSI)
I posted the other day a question about writing a daemon to monitor a directory and then process the files as they arrive in said directory. I will begin working on this shortly, but I have a related question and this I think is mainly a question of good coding practice. Eventually, there

RE: basic question: handling input to TCP/IP server

2003-06-25 Thread McMahon, Christopher x66156
ile ($client = $server->accept()) { my $n = sysread($client,$input,1000); print "$input\n" ; } -Original Message- From: Gupta, Sharad [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 7:11 PM To: Gupta, Sharad; McMahon, Christopher x66156; [EMAIL P

RE: basic question: handling input to TCP/IP server

2003-06-24 Thread Gupta, Sharad
quot;. -Sharad -Original Message- From: Gupta, Sharad Sent: Monday, June 23, 2003 3:36 PM To: 'McMahon, Christopher x66156'; [EMAIL PROTECTED] Subject: RE: basic question: handling input to TCP/IP server Something like this worked for me in the past: use strict; use IO::S

RE: basic question: handling input to TCP/IP server

2003-06-24 Thread McMahon, Christopher x66156
more lines of code and I'll be impersonating the New York Stock Exchange! -Chris -Original Message- From: Gupta, Sharad [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:41 PM To: McMahon, Christopher x66156; [EMAIL PROTECTED] Subject: RE: basic question: handling in

RE: basic question: handling input to TCP/IP server

2003-06-23 Thread Gupta, Sharad
. perldoc -f sysread perldoc -f syswrite -Sharad -Original Message- From: McMahon, Christopher x66156 [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: basic question: handling input to TCP/IP server Hello all... I've implemented the TCP/IP s

basic question: handling input to TCP/IP server

2003-06-23 Thread McMahon, Christopher x66156
Hello all... I've implemented the TCP/IP server at the top of p.441 of The Camel (3rd edition) Chapter 16, and it's working fine. That is, it opens the port I tell it to, and other processes connect to it and happily send it stuff. (This is using IO::Socket::INET). But now I'm a little c

RE: Joining with a basic question

2002-12-03 Thread Timothy Johnson
Ok, that makes a lot more sense. Thanks for the clarification. -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 03, 2002 5:21 AM To: Timothy Johnson; [EMAIL PROTECTED] Subject: Re: Joining with a basic question Timothy select() returns the

Re: Joining with a basic question

2002-12-03 Thread Rob Dixon
ROTECTED]> To: "'Weijie Ding'" <[EMAIL PROTECTED]>; "Andrew F." <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, December 03, 2002 10:00 AM Subject: RE: Joining with a basic question > > Wow, and I thought mine was cryptic. Maybe you

RE: Joining with a basic question

2002-12-03 Thread Timothy Johnson
How is this different from: select(STDOUT); $| = 1; -Original Message- From: Weijie Ding [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 9:52 PM To: Andrew F.; [EMAIL PROTECTED] Subject: Re: Joining with a basic question Hi, Andrew F., 2002-12-03 13:48:40 I think th

Re: Joining with a basic question

2002-12-02 Thread Weijie Ding
Hi, Andrew F., 2002-12-03 13:48:40 I think this may because your buffered output. You can use the following to set output unbuffered/flushed before your first statement in your program. select((select(STDOUT), $| = 1)[0]); ==

RE: Joining with a basic question

2002-12-02 Thread Timothy Johnson
By default, Perl buffers the output to STDOUT. Try setting the $| variable to 1. -Original Message- From: Andrew F. [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 6:02 PM To: [EMAIL PROTECTED] Subject: Joining with a basic question Hello all. My name is Andrew. I

Joining with a basic question

2002-12-02 Thread Andrew F.
Hello all. My name is Andrew. I might as well get right to it. I'm writing a real basic script, since I'm still learning Perl. It looks like this: print "Input a name: "; #Prompt for a name sleep .5; $name1 = ;#User input print "\nInput anot

Re: A basic question about arrays

2002-07-27 Thread Steve Grazzini
Eric Preece <[EMAIL PROTECTED]> wrote: > Yet another newbie question. I have a file, each line > is a pipe delimited list (user name and password). I > want to open the file, search through each line using > the first entry as a key (so this may turn into a > question about hashes, but I am no

Re: A basic question about arrays

2002-07-26 Thread Connie Chan
[] > -My Response- > > If you only want to go through the file once, it may not make sense to go to > the trouble of creating a hash. Bottom line is that you probably want > something like this: > > # loop through the file line by line > while () { > # strip the trailing newline fro

Re: A basic question about arrays

2002-07-26 Thread John W. Krahn
Eric Preece wrote: > > Hello, Hello, > Yet another newbie question. I have a file, each line is a > pipe delimited list (user name and password). I want to open > the file, search through each line using the first entry as > a key (so this may turn into a question about hashes, but I > am not s

A basic question about arrays

2002-07-26 Thread Eric Preece
Hello, Yet another newbie question. I have a file, each line is a pipe delimited list (user name and password). I want to open the file, search through each line using the first entry as a key (so this may turn into a question about hashes, but I am not sure). If I get a positive result I want

RE: A basic question about arrays

2002-07-26 Thread Mark Anderson
-Original Message- From: Eric Preece [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 4:09 PM To: [EMAIL PROTECTED] Subject: A basic question about arrays Hello, Yet another newbie question. I have a file, each line is a pipe delimited list (user name and password). I want to

Re: Very Basic Question: Open Interact Installation

2002-05-10 Thread Brian K
So I ran "Perl MakeFile.pl" in the directory where I expanded the SPOPS module. It said it was "Writing MakeFile for Bundle::SPOPS" And now there is a new file in the dir called "MakeFile" What do I have to do to get the module installed into my perl\lib folder? From what I can tell I need SPOP

RE: Very Basic Question: Open Interact Installation

2002-05-10 Thread Timothy Johnson
Do you have a C compiler installed? -Original Message- From: Brian K [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 1:16 PM To: [EMAIL PROTECTED] Subject: Very Basic Question: Open Interact Installation Here is a question that I will likely be ashamed I asked, once I have a

Re: Very Basic Question: Open Interact Installation

2002-05-10 Thread drieux
On Friday, May 10, 2002, at 01:15 , Brian K wrote: > Here is a question that I will likely be ashamed I asked, once I have a > clue... that's the way they all start out { the 'twack!' sound you hear is the folks going - "OH! that's what that skank document meant } [..] > I am so new

Very Basic Question: Open Interact Installation

2002-05-10 Thread Brian K
Here is a question that I will likely be ashamed I asked, once I have a clue... I have a pl file that relies on some OpenInteract stuff. I got as far as finding the openinteract install files. When I first ran the MakeFile.pl make install routine for this it gave a bunch of errors suggesting th

Re: Mod_Perl -- A very basic question to get started

2002-04-13 Thread Matt C.
e all the web-development done in ASP for W2K with IIS Web-Servers and > am a newbie to mod_perl. I have a very basic question on this Perl > technology. Here it is: > >What is the primodial or **chief use** of mod_perl with apache? > --Is it to run CGI Scripts u

RE: Mod_Perl -- A very basic question to get started

2002-04-12 Thread Bob Showalter
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 12, 2002 10:28 AM > To: [EMAIL PROTECTED] > Subject: Mod_Perl -- A very basic question to get started > > > > Hello Friends, > > I have all the web-develop

Mod_Perl -- A very basic question to get started

2002-04-12 Thread RArul
Hello Friends, I have all the web-development done in ASP for W2K with IIS Web-Servers and am a newbie to mod_perl. I have a very basic question on this Perl technology. Here it is: What is the primodial or **chief use** of mod_perl with apache? --Is it to run CGI

Re: Very Basic <> Question

2002-03-18 Thread Jonathan E. Paton
> Forgive me for such a basic question, > I'm brand spanking new to Perl and > programming in general. The banner on the door says: "beginners@perl" so I guess we should say 'Welcome Friend' :) > This is from the exercises in "Learning >

Very Basic <> Question

2002-03-18 Thread Michael Norris
Forgive me for such a basic question, I'm brand spanking new to Perl and programming in general. This is from the exercises in "Learning Pearl", chapter 6, exercise 1. The goal is to reverse the order of all the lines of a specified file. The very simple answer given in

Re: Basic Question on %ENV

2001-11-27 Thread Jenda Krynicky
From: Andrea Holstein <[EMAIL PROTECTED]> > [EMAIL PROTECTED] wrote: > > > > Here is a basic question on %ENV hash. I gave a pronto statement as thus: > > > > perl -e "print $ENV{ComputerName};" > > > > and it printed the correct inform

Re: Basic Question on %ENV

2001-11-26 Thread Andrea Holstein
[EMAIL PROTECTED] wrote: > > Here is a basic question on %ENV hash. I gave a pronto statement as thus: > > perl -e "print $ENV{ComputerName};" > > and it printed the correct information. > > On my MS-DOS prompt when I gave the SET command, I noticed tha

Basic Question on %ENV

2001-11-26 Thread RArul
Friends, Here is a basic question on %ENV hash. I gave a pronto statement as thus: perl -e "print $ENV{ComputerName};" and it printed the correct information. On my MS-DOS prompt when I gave the SET command, I noticed that the environmental variable for ComputerName to be

Re: Basic Question

2001-09-29 Thread Randal L. Schwartz
>>>>> "Geoff" == Geoff <[EMAIL PROTECTED]> writes: Geoff> I have a very basic question. At webmonkey.com I found a CGI Tutorial, and Geoff> am trying to implement CGI on my own site. I tried using the script on my Geoff> website, but it doesn't see

RE: Win32 Configuration - Basic Question

2001-04-30 Thread King, Jason
Helio S. Junior writes .. >Does anyone know how to configure a Win2k Web Server? >What do i have to do in the Web Server and on my >machine in order to be able to write CGI Applications? > >I have got the Win32 port of Perl from ActivePerl. when you install ActiveState's Perl .. if there's a "De

Win32 Configuration - Basic Question

2001-04-30 Thread Helio S. Junior
Hello, Does anyone know how to configure a Win2k Web Server? What do i have to do in the Web Server and on my machine in order to be able to write CGI Applications? I have got the Win32 port of Perl from ActivePerl. TIA, Helio __ Do You Yahoo