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
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
} 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
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
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_
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
[ '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
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
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
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
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_
"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
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
[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.)
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
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
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
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
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
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
"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
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
> 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
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
--
> 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
>
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;
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
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
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
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
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
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
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]
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
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
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
. 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
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
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
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]
41 matches
Mail list logo