Re: What is the meaning of $normalize->{$1}

2023-06-16 Thread Freek de Kruijf
Op donderdag 15 juni 2023 22:31:31 CEST schreef Claude Brown: > Is there any prior mention of "$normalise" in the script? Only now I see the first mentioning of $normalize as: $normalize = {} The naming of it is quite confusing to me. More logically would have been "present". Now I understand

Re: What is the meaning of $normalize->{$1}

2023-06-15 Thread Kang-min Liu
Freek de Kruijf writes: > Hi, > > I am trying to understand fully a perl program with the following lines: > >} elsif( /^(\#?\s*(?:pickup|qmgr)\s+)(?:fifo|unix)(\s+.*)/ ) { > if( defined $normalize->{$1} ) { next; } else { $normalize->{$1} = 1; } > I do understand the first line, but

Re: What is the meaning of $normalize->{$1}

2023-06-15 Thread Andy Bach
} elsif( /^(\#?\s*(?:pickup|qmgr)\s+)(?:fifo|unix)(\s+.*)/ ) { if( defined $normalize->{$1} ) { next; } else { $normalize->{$1} = 1; } if the string starting at the beginning of the line matches, $1 will contain "zero or one #, zero or more whitespaces, either the word "pickup" or "qmgr", o

What is the meaning of $normalize->{$1}

2023-06-15 Thread Freek de Kruijf
Hi, I am trying to understand fully a perl program with the following lines: } elsif( /^(\#?\s*(?:pickup|qmgr)\s+)(?:fifo|unix)(\s+.*)/ ) { if( defined $normalize->{$1} ) { next; } else { $normalize->{$1} = 1; } I do understand the first line, but I can not find what the second line is

perl interpreter output meaning?

2012-09-22 Thread Anne Wainwright
Hi, this is the output. Use of uninitialized value $9 in concatenation (.) or string at pg_delim2htm_01.pl line 89, <> line 1. Use of uninitialized value $9 in concatenation (.) or string at pg_delim2htm_01.pl line 89, <> line 4. Use of uninitialized value $9 in concatenation (.) or string at pg_

Re: perl interpreter output meaning?

2012-09-22 Thread Anne Wainwright
Hi, Thank you Lesleyb, Shlomi, Rob. I should have connected the <> in the output with the <> that I used to get the stuff into the script in the first place but it made no connection. So perl gets better all the time! And that knowledge enabled me to track down the error in the regex so we are

Re: perl interpreter output meaning?

2012-09-22 Thread Jamie Paul Griffin
[ 'lesleyb' wrote on Sat 22.Sep'12 at 9:22:09 +0100 ] > On Sat, Sep 22, 2012 at 09:45:08AM +0200, Anne Wainwright wrote: > > Hi, > > > > this is the output. > > > > Use of uninitialized value $9 in concatenation (.) or string at > > pg_delim2htm_01.pl line 89, <> line 1. > > Use of uninitialize

Re: perl interpreter output meaning?

2012-09-22 Thread Rob Dixon
On 22/09/2012 08:45, Anne Wainwright wrote: Hi, this is the output. Use of uninitialized value $9 in concatenation (.) or string at pg_delim2htm_01.pl line 89, <> line 1. Use of uninitialized value $9 in concatenation (.) or string at pg_delim2htm_01.pl line 89, <> line 4. Use of uninitialize

Re: perl interpreter output meaning?

2012-09-22 Thread Shlomi Fish
Hi Anne, On Sat, 22 Sep 2012 09:45:08 +0200 Anne Wainwright wrote: > Hi, > > this is the output. > > Use of uninitialized value $9 in concatenation (.) or string at > pg_delim2htm_01.pl line 89, <> line 1. > Use of uninitialized value $9 in concatenation (.) or string at > pg_delim2htm_01.pl l

Re: perl interpreter output meaning?

2012-09-22 Thread 'lesleyb'
On Sat, Sep 22, 2012 at 09:45:08AM +0200, Anne Wainwright wrote: > Hi, > > this is the output. > > Use of uninitialized value $9 in concatenation (.) or string at > pg_delim2htm_01.pl line 89, <> line 1. > Use of uninitialized value $9 in concatenation (.) or string at > pg_delim2htm_01.pl line 8

perl interpreter output meaning?

2012-09-22 Thread Anne Wainwright
Hi, this is the output. Use of uninitialized value $9 in concatenation (.) or string at pg_delim2htm_01.pl line 89, <> line 1. Use of uninitialized value $9 in concatenation (.) or string at pg_delim2htm_01.pl line 89, <> line 4. Use of uninitialized value $9 in concatenation (.) or string at pg_

Re: Meaning of [EMAIL PROTECTED]

2008-06-12 Thread Dr.Ruud
"Jeff Peng" schreef: > sundeep.sn@: >> What does the following piece of code mean? >> >> my @temp1; >> my @temp2; >> $cnt=0; >> $temp2[$cnt] = [EMAIL PROTECTED]; >> >> What is the kind of data stored in $tempFieldNames[$information] ? > > [EMAIL PROTECTED] means creating an anonymous array. It cr

Re: Meaning of [EMAIL PROTECTED]

2008-06-12 Thread Paul Lalli
On Jun 12, 6:41 am, [EMAIL PROTECTED] (Rodrick Brown) wrote: > On Thu, Jun 12, 2008 at 5:28 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > Hi there, > > > I am stuck with something here. > > What does the following piece of code mean? > > > my @temp1; > > my @temp2; > > $cnt=0; > > $temp2

Re: Meaning of [EMAIL PROTECTED]

2008-06-12 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hi there, Hello, I am stuck with something here. What does the following piece of code mean? my @temp1; Create the lexical array @temp1 and initialise it with nothing (empty.) my @temp2; Create the lexical array @temp2 and initialise it with nothing (empty.)

Re: Meaning of [EMAIL PROTECTED]

2008-06-12 Thread Jeff Peng
On Thu, Jun 12, 2008 at 5:28 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi there, > > I am stuck with something here. > What does the following piece of code mean? > > my @temp1; > my @temp2; > $cnt=0; > $temp2[$cnt] = [EMAIL PROTECTED]; > > What is the kind of data stored in $tempFieldName

Re: Meaning of [EMAIL PROTECTED]

2008-06-12 Thread Rodrick Brown
On Thu, Jun 12, 2008 at 5:28 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi there, > > I am stuck with something here. > What does the following piece of code mean? > > my @temp1; > my @temp2; > $cnt=0; > $temp2[$cnt] = [EMAIL PROTECTED]; > > What is the kind of data stored in $tempFieldNam

Meaning of [EMAIL PROTECTED]

2008-06-12 Thread [EMAIL PROTECTED]
Hi there, I am stuck with something here. What does the following piece of code mean? my @temp1; my @temp2; $cnt=0; $temp2[$cnt] = [EMAIL PROTECTED]; What is the kind of data stored in $tempFieldNames[$information] ? Please help. Sundeep -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: A --- What this kind of meaning is ?

2004-08-17 Thread Bee
O! Thanks alot, that just simply the formatting codes, simple ! Thank you. - Original Message - From: "Gunnar Hjalmarsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 18, 2004 2:11 AM Subject: Re: A --- What this kind of meaning is ? &g

Re: A --- What this kind of meaning is ?

2004-08-17 Thread Gunnar Hjalmarsson
Bee wrote: > Through out the perldoc, I always see something like this : B, > F. something like that, would anybody tell me what > this kind of thing is ? or any reference I can know more about this > kind of phrases are ? perldoc perlpod -- Gunnar Hjalmarsson Email: http://www.gunnar.cc

A --- What this kind of meaning is ?

2004-08-17 Thread Bee
Through out the perldoc, I always see something like this : B, F. something like that, would anybody tell me what this kind of thing is ? or any reference I can know more about this kind of phrases are ? TIA

Re: NetAdmin::UserGetAttributes $flag meaning?

2003-03-12 Thread R. Joseph Newton
"Jones, Jeremy" wrote: > Hello, > > Does anybody know how to decipher the numerical codes returned from a Win32 > system under the $flag field? > > for instance: > = > GetUsers("",$filter, \%names); > $flag = ""; > foreach (keys %names) { > UserGetAttributes("", > $_,$p

NetAdmin::UserGetAttributes $flag meaning?

2003-03-12 Thread Jones, Jeremy
Hello, Does anybody know how to decipher the numerical codes returned from a Win32 system under the $flag field? for instance: = GetUsers("",$filter, \%names); $flag = ""; foreach (keys %names) { UserGetAttributes("", $_,$pass,$passage,$priv,$homedir,$comment,$flag,$sc

Re: Scalar reference, pointer to pointer meaning

2002-12-29 Thread Rob Dixon
> Using VerQueryValue for file version information on Windows > > > What I expected to find in $lplpBuffer is instead being > > written to an unused part of the full buffer ($lpFullBuffer). As far as I know, Windows never hands back a newly-allocated data buffer to you. The idea is that you call G

Re: Scalar reference, pointer to pointer meaning

2002-12-29 Thread Gary Hawkins
Using VerQueryValue for file version information on Windows > What I expected to find in $lplpBuffer is instead being > written to an unused part of the full buffer ($lpFullBuffer). Got it. Prints like so: c:\windows\system32\version.dll CompanyName Microsoft Corporation

RE: Scalar reference, pointer to pointer meaning

2002-12-28 Thread Gary Hawkins
-- > From: Rob Dixon [mailto:[EMAIL PROTECTED]] > Sent: Saturday, December 28, 2002 4:13 AM > To: [EMAIL PROTECTED] > Subject: Re: Scalar reference, pointer to pointer meaning > > Hi Gary > > You're suffering a little C-lag. The backslash performs roughly the same >

Re: Scalar reference, pointer to pointer meaning

2002-12-28 Thread Rob Dixon
Hi Gary You're suffering a little C-lag. The backslash performs roughly the same function as the ampersand in C, while dereferencing requires knowing the type of the reference, which can be discovered using the ref() function. my (@array, $scalar, $lp); $lp = \@array; print ref $lp;

Scalar reference, pointer to pointer meaning

2002-12-27 Thread Gary Hawkins
I have a variable using module Win32::API that would be a pointer to a pointer in C. If I do: $var = $lplpBuffer; print "\$var $var\n"; $var = \$lplpBuffer; print "\$var $var\n"; $var = \$lplpBuffer[0]; print "\$var $var\n"; ...it prints: $varÆ╢☺ $var SCALAR(0x1

Re: Determining the meaning of a subscript...

2002-10-30 Thread David Buddrige
Thanks Nigel. The program that my collegue wrote parses a C++ file, and allows us to re-arrange the comments contained in it based on their location in relation to various code. We have a bunch of company-standard comments in this code, but we are now being required to move to doc++ as our do

Re: Determining the meaning of a subscript...

2002-10-30 Thread Nigel Wetters
On Wed, 2002-10-30 at 07:49, David Buddrige wrote: > $TO_sub="$;#"; > $TC_sub="$;@"; obscure. $; is by default "\034"; thus $TO_sub is "\034#" and $TO_sub is "\034@". I guess your colleague has manually constructing her own multidimensional hashes or arrays using these subscript separators. With

Determining the meaning of a subscript...

2002-10-29 Thread David Buddrige
Hi all, I am learning Perl in order to extend a program one of my collegues has written. In the code I have come across these two statements: $TO_sub="$;#"; $TC_sub="$;@"; Looking up "$;" in "Perl in a Nutshell", it says that "$;" is a subscript seperator for multi-dimentional arrays, howeve

Meaning

2002-04-16 Thread Bill Lyles
As I am somewhat new to perl can someone tell me what this means   $header = qq~   I understand the header but what is the qq~ for?   Thanks  

Re: What is the meaning of this regexes .*? (was Re: regex)

2002-01-05 Thread Bkwyrm
Le Sat, Jan 05, 2002 at 08:51:19AM +0800, Leon a dit le suivant: } } > If so, I suggest something like: } > $text =~ s/.*?//gs; } } * means zero or more instances; } ? means zero or one instances; } + means one or more instances; } } so what is the meaning of .*? .. matches any t

What is the meaning of this regexes .*? (was Re: regex)

2002-01-05 Thread Leon
means one or more instances; so what is the meaning of .*? Thanks _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Would anybody tell me what is the meaning of "foo" ?

2001-12-31 Thread David H. Lynch Jr.
anybody tell me what is the meaning of "foo" ? Here's my understanding, pretty sure I am very close, if not correct. Foo and Bar are parts of a miliary acronym (or at least that is my understanding of its origin), FooBar. Sometimes called FuBar. They stand for: 1) Fouled up beyond

Re: Would anybody tell me what is the meaning of "foo" ?

2001-12-30 Thread Bruce Ferrell
Hi Connie, It goes back to the military. Originally it was SNAFU. The translations is/was Situation Normal, All Fouled Up (ok fouled is NOT the word most often used, but I'm trying to keep it clean). When I learned digital electronics people talked about FU and FU-BAR. FU being a true-active s

Re: Would anybody tell me what is the meaning of "foo" ?

2001-12-30 Thread Matt C.
eyond all recognition So it's a cute term to play around with as a neophyte, as your code will sometimes be foobar. Matt --- Connie Chan <[EMAIL PROTECTED]> wrote: > Thank you Eric and Peter. but.. I still don't understand.. > What is the meaning of foo in perl pro

RE: Would anybody tell me what is the meaning of "foo" ?

2001-12-30 Thread Peter Cornelius
. Or at least grin. maybe. ;-) hehe, Peter C. -Original Message- Subject: Re: Would anybody tell me what is the meaning of "foo" ? Thank you Eric and Peter. but.. I still don't understand.. What is the meaning of foo in perl programming ? I see quite a lot of samp

Re: Would anybody tell me what is the meaning of "foo" ?

2001-12-30 Thread Connie Chan
Thank you Eric and Peter. but.. I still don't understand.. What is the meaning of foo in perl programming ? I see quite a lot of sample codes use foo. besides, and what is bar ? Is that a certain type of variable ?? just like a number or something like escape char ?? Please te

Re: Would anybody tell me what is the meaning of "foo" ?

2001-12-30 Thread Eric S. Harris
Today is your lucky day. Or unlucky day, if you spend even half the time I've squandered this day, reading definitions, anecdotes and commentary in "The Jargon Lexicon". Here's the link. You were warned. -Eric S. http://www.tuxedo.org/~esr/jargon/html/entry/foo.html -- E-mail privacy: ht

RE: Would anybody tell me what is the meaning of "foo" ?

2001-12-30 Thread Peter Cornelius
It's a deliberate misspelling of fubar which means... Well, check this out. http://whatis.techtarget.com/definition/0,,sid9_gci748437,00.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Would anybody tell me what is the meaning of "foo" ?

2001-12-30 Thread Connie Chan