what's OP_DOR?
On 9/20/05, Rafael Garcia-Suarez [EMAIL PROTECTED] wrote:
On 9/20/05, David Nicol [EMAIL PROTECTED] wrote:
what's OP_DOR?
//
Now that defined-or has an opcode, is
if(defined(EXPR)){...
optimized to use it instead of calling OP_DEFINED?
--
David L Nicol
Abkey, deafghee, jekyll
Dongxu:
please refer to
http://inline.perl.org/inline/home.html
On 9/13/05, Dongxu Ma [EMAIL PROTECTED] wrote:
I want to port this object to perl by wrapping it as a sub like this:
Another question, is there any better way to port a class method which
I replaced all instances of e\.?g\.? and i\.?e\.? with for example
and that is in a copy of 5.9.2 the 92K patch is available at
http://cronos.advenge.com/perl/IE_EG.patch
in the hopes that someone else will go through it and add
commas, and remove Iitalics as needed.
--
David L Nicol
@@ -9101,11 +9166,9 @@
}
if (!asterisk)
- {
FWIW here's a one-liner that finds ifs with opening brackets
on following lines in case anyone wants to play with style patching.
perl -e 'undef $/; while (@ARGV){ print $ARGV[0]\n;$slurp = ;\
@ifb = $slurp =~ /(^[
On 9/1/05, Rafael Garcia-Suarez [EMAIL PROTECTED] wrote:
I just commited into bleadperl a patch that implements this :
$ ./perl -e 'no 5'
Perls since v5.0.0 too modern--this is v5.9.3, stopped at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
That is, the exact
On 8/25/05, Jan Dubois [EMAIL PROTECTED] wrote:
On Sun, 21 Aug 2005, Jesse Eversole wrote:
it looks like
Storable is incompatable
Are you having endianness problems? Storable has tools for storing
in a standard endianness to work around such -- I think it's nstore
instead of store
On 8/17/05, Dave Mitchell [EMAIL PROTECTED] wrote:
On Wed, Aug 17, 2005 at 03:37:13PM -0500, David Nicol wrote:
which could also AIUI benefit /slightly/ from binding the subroutine's
entry point directly to the node that calls it instead of looking the
entry point up in a hash
On 8/18/05, Dave Mitchell [EMAIL PROTECTED] wrote:
@Dog::ISA = qw(Mammal);
...
my Mammal $x = new Dog;
$x-foo(); # may be Dog::foo() or Mammal::foo()
As I hid in the middle of a wordy paragraph a few posts back in this thread,
[the proposed optimization] would break
subclassing in the
On 8/17/05, Rick Delaney [EMAIL PROTECTED] wrote:
As for speeding up method lookups, aren't they cached after the first
lookup anyway? Isn't the slowness of method calls simply the slowness
of subroutine calls?
which could also AIUI benefit /slightly/ from binding the subroutine's
entry
On 8/8/05, Nicholas Clark [EMAIL PROTECTED] wrote:
On Wed, Aug 03, 2005 at 06:04:44PM -0700, Michael G Schwern wrote:
On Thu, Aug 04, 2005 at 12:26:32AM +0200, Abigail wrote:
What would the gain be if you remove $[?
Taking it out would simplify the PMC(s) that replace AVs
depending on the
On 8/8/05, Rafael Garcia-Suarez [EMAIL PROTECTED] wrote:
Actually,
$] = 1; eval q/$foo[1]/
is supposed to return the first element of @foo.
So you can't completely optimize it out at compile time.
eval-string does compilation, so yes you can, for
sufficiently weak values of completely.
--
How about Thus Clast can be used to exit out of such a block early.?
Thus Clast can be used leave such a block immediately.?
Anyone else for putting all the documentation on some kind of heavily modified
wiki? The resulting optimized collaborative text editing environment would be
a Good
I like the fact that the perl documentation is peppered
with correct uses of effect as a verb.
I doubt the wisdom of continuing to talk about Y2K compliance,
here in Y2K+5. We could talk about Y2100 compliance.
Note that the $year element is Inot simply the last two digits of
-the year.
On 7/28/05, John P. Linderman [EMAIL PROTECTED] wrote:
is there any significant difference between perl and Perl?
That is exactly the sort of edge case that is under discussion in
this thread. One possibility is maintaining an explicit glossary.pod file
which would not only answer that
How about using the word obfuscate? It's a nice word
--
David L Nicol
I've got your Oz right here
http://cronos.advenge.com/pc/oz/TOC.html
How does the attached patch grab you?
--
David L Nicol
Aesop's fables, with text-sensitive advertising:
http://cronos.advenge.com/pc/aesop/start.html
--- perlfunc.pod.old 2005-07-15 15:08:38.12500 -0500
+++ perlfunc.pod 2005-07-15 15:49:50.765625000 -0500
@@ -3198,19 +3198,21 @@
=item
Muy fantastico!
Do declarations assign variables to names or do we assign names to variables?
Although it sounds horrendous, i think that we assign a fresh
variable to the name
is more correct. Assigning something to a variable is of course taken care of
by the assignment operator.
...
On 7/14/05, Fergal Daly [EMAIL PROTECTED] wrote:
I don't really use our() so I wouldn't miss it if it disappeared completely,
I too was suspicious of our until I read the bit of the
documentation -- perhaps
in the third edition camel book -- that describes the operation of our as
creating a
Yes! Well put!
Cour associates a simple name with a package variable in the
current package for the remainder of the scope
You get an A.
On 14 Jul 2005 09:21:03 -0700, Randal L. Schwartz merlyn@stonehenge.com wrote:
You can lift whatever you want from
On 7/4/05, Nick Ing-Simmons [EMAIL PROTECTED] wrote:
David Nicol [EMAIL PROTECTED] writes:
Q. What does noncommercial mean?
A. Non-commercial means that you are not getting compensated in any
form
for the products and/or services you develop using these Intel(r
Just how big would a Big Patch to fix all of these be?
On 7/5/05, Michael G Schwern [EMAIL PROTECTED] wrote
[documentation that refers to subroutine and method parameters by
a generic term like argument instead of by a name indicating the purpose
of that particular parameter in the subroutine
On 7/5/05, Paul Johnson [EMAIL PROTECTED] wrote:
I feel your pain and I will share it. How far each author goes down
the backwards compatibility route is obviously up to them, and as a
volunteer effort no one has any right to get upset about their decision.
Wasn't one of the goals of
On 6/17/05, Jan Dubois [EMAIL PROTECTED] wrote:
I would just leave these macros alone.
Cheers,
-Jan
how about leaving the existing macros alone, but replacing all the
calls to the old macros with calls to a new, xless macro, called
perhaps New2005 or New510 or New2 or NewNew or NNew or NEw
On 6/16/05, Nicholas Clark [EMAIL PROTECTED] wrote:
http://developer.intel.com/software/products/noncom/faq.htm
Q. What does noncommercial mean?
A. Non-commercial means that you are not getting compensated in any form
for the products and/or services you develop using these
and that doc text from perlre (5.8.6) has a grammar bug in it as well
(put 'it' after 'makes').
YS Yes.
it shows how few people have actually read that note. :)
uri
I actually thought it was by design that way, as part of the
internationalization
of perl initiative, to in bring
On 5/31/05, demerphq [EMAIL PROTECTED] wrote:
Yoda does tech-writing now or what?
It's the new word order
On 5/19/05, Jim Cromie [EMAIL PROTECTED] wrote
+If module-names are given as args, those packages are run thru the
+test harness; this is handy for collecting further items to test, and
+may be useful otherwize (ie just to see).
s/otherwize/otherwise/
--
David L Nicol
Twinkies and
On 5/20/05, Dave Mitchell [EMAIL PROTECTED] wrote:
My question is, should
sub f { eval { goto g } }
a) give an error like the string form of eval, or
b) exit f() and start executing g()?
I vote (b).
(b) is the legacy behavior for goto NAME within an eval-block:
$ perl -wle 'sub
On 13 May 2005 03:11:36 -0700, Gisle Aas [EMAIL PROTECTED] wrote:
Another way to fix this to to make $? be exactly those 16 bits
described by this code segment found in description of system in
perlfunc:
| You can check all the failure possibilities by inspecting
| C$? like this:
|
|
On 5/12/05, Ton Hospel [EMAIL PROTECTED] wrote:
And isn't a simular fix needed for the returncode of system() ?
fascinating stuff. Would it make sense to abstract return code massaging
into a macro, possibly different per-platform?
--
David L Nicol
Like a bird on a wire,
Like a drunk in a
On 4/26/05, Michael G Schwern [EMAIL PROTECTED] wrote:
I presume you mean this to be the smart way:
foreach my $num (1..$Very_Big_Number) {
$num *= 10;
...do whatever...
}
there is no doc for this because it is not what range is for.
You
On 4/26/05, Michael G Schwern [EMAIL PROTECTED] wrote:
Got a more concrete use-case?
I can think of some vague possibilities. Flyweight patterns. Weak
references... but all pretty vague.
The problem, with this, as well as l-value references, and the it
hack for that
matter, is that there
On 4/20/05, Dave Mitchell [EMAIL PROTECTED] wrote:
On Tue, Apr 19, 2005 at 09:31:52PM -0500, David Nicol wrote:
On 4/19/05, Ronald J Kimball [EMAIL PROTECTED] wrote:
Which, I believe, is why David suggests that the error include the whole
expression, rather than just the last few tokens
On 4/20/05, Steve Peters [EMAIL PROTECTED] wrote:
are you saying it's Perl's fault if you accidently put
half of your program in a string and Perl only discovers this when you start a
new string?
Absolutely not. But when I do accidentally put half my program in a
string, Perl
tends to
On 4/20/05, Dave Mitchell [EMAIL PROTECTED] wrote:
That's because 'kangaroo regularize to lowercase' is a perfectly valid Perl
statement and shouldn't generate warnings; it's just the indirect-object
equivalent of
regularize-kangaroo(lowercase-to)
$ perl -wc -e 'kangaroo snake lion ;
On 4/20/05, Dave Mitchell [EMAIL PROTECTED] wrote:
Adding a warning would warn on the following:
sub log { print LOG @_ }
...
open LOG, 'log';
No it wouldn't. Cprint takes CLOG as it's first argument,
not rearranging into CLOG-print(@_). (Or I am being naive again.)
The
On 4/20/05, Dave Mitchell [EMAIL PROTECTED] wrote:
differently. How about this example then:
sub log { myprint LOG @_ }
...
open LOG, 'log';
doesn't myprint have to be defined, or at least have a prototype
registered for it, before reaching that point, to prevent it
from
could we extend the bit of code that gets quoted when a parsing
failure is thrown
to include the whole expression under consideration at the time rather than the
last few tokens when things get impossible?
The confusing situation occurs when there are a whole bunch of tokens
preceding a normal
On 4/19/05, Ronald J Kimball [EMAIL PROTECTED] wrote:
On Wed, Apr 20, 2005 at 01:23:49AM +0200, Abigail wrote:
On Tue, Apr 19, 2005 at 04:26:28PM -0500, David Nicol wrote:
could we extend the bit of code that gets quoted when a parsing failure
is thrown to include the whole expression
I have written a set of tests for \$alias = \$original in a variety of
settings. Shall I
post it? All new syntax is within eval-string blocks.
--
David L Nicol
This means that the store routine is only called once, even though it should
be
called for each element when a hash-slice is used.
Doing the same thing on a 'normal' hash will create the 3 keys, where the
first
2 have a value of undef, and the last one a value of 1
There is only one
how does checking
((some unsigned expression) = 0)
which will always be true, function as a bounds check?
On Mon, 21 Mar 2005 13:24:24 +0100, demerphq [EMAIL PROTECTED] wrote:
%CC-I-QUESTCOMPARE, In this statement, the unsigned expression
(base+ofs-trie-uniquecharcount) is
transition tables (and case insensitivity is murder). And afaik
I don't know how /i is handled currently, but a one-time y/a-z/A-Z/ on the
input before the match is made coupled with a regex-compile-time transform
on the match states (or the equivalent unicode transform -- transform to
a
apply to greek unicode? I'm really out
of my depth in this conversation.
On Tue, 15 Mar 2005 17:58:09 +, Nicholas Clark [EMAIL PROTECTED] wrote:
On Tue, Mar 15, 2005 at 11:54:12AM -0600, David Nicol wrote:
transition tables (and case insensitivity is murder). And afaik
I don't know
On Tue, 15 Mar 2005 19:40:55 +0100, demerphq [EMAIL PROTECTED] wrote:
So you cant tell the length of thing you really matched from the
length of fold cased version that you did match.
yves
sure you can, its just that the bookkeeping is more complex than simple offsets.
One way to do it
sounds like a golf hole
perl -plie 's/\s+$//' *.h *.c
in fact the p5p archive contains a lot of notes in the direction of
implementing
references as l-values.
How hard would it be to change the scope of changes to $\ so the AAAD
problem goes away? Could the syntax be
my $\ = \n
after which Cprint takes $\ from the caller's pad instead of from
the
okay Dan, how does this grab you?
--- perlfunc.podTue Mar 8 12:23:37 2005
+++ perlfunc.pod.newTue Mar 8 18:22:41 2005
@@ -2273,7 +2273,8 @@
Hex strings may only represent integers. Strings that would cause
integer overflow trigger a warning. Leading whitespace is not stripped,
it is as usual difficult to tell if everyone is being serious about wanting to
see perldoc perlop extended here or if everyone is pitching arguments against
because of the complexity of a comprehensive patch.
On Wed, 02 Mar 2005 06:18:54 +0800, Dan Jacobson [EMAIL PROTECTED] wrote:
D qx// ...
Was there ever a consensus reached on the _ prototype, which would
be the last in a prototype signature and would become $_ when not provided?
--
David L Nicol
Communication is neither obvious nor inscrutable.
i noticed the threads documentation says that thread IDs count upwards to
infinity.
We could recycle old thread IDs in a FIFO way using a strategy similar
to the indices in Array::Frugal.
In short, when an ID is returned, it is placed at the top of the stack, and the
stack of free IDs is managed
On Fri, 14 Jan 2005 15:33:07 -0800, Yitzchak Scott-Thoennes
[EMAIL PROTECTED] wrote:
The perldoc -f my documentation *could* use some work.
From a syntactic viewpoint, my($c, $f)=0 is a list assignment to the
return value of my(), but perlfunc doesn't discuss *what my returns*.
IMO it is
perl -e ' CHECK{local *::; %::=()}'
doesn't crash. Maybe a better solution is to localize *:: and let it fall
out of scope, instead of trying to clear it? Although writing around this
would undeniably be a headache.
--
David L Nicol
You're striving for harmony, and, if you try to take
whoops. Thanks.
On Tue, 04 Jan 2005 00:15:13 +0100, David Landgren [EMAIL PROTECTED] wrote:
Juerd wrote:
You can either mix POD with code... I know what you mean, but I think
intersperse or intermingle describe the effect more clearly.
by lines or by whole lines to keep people from trying to do pod
stuff
we have to
say something about them, or leave them out entirely. Since there isn't
anything we can say about them, let's leave them out.
On Thu, 30 Dec 2004 09:53:30 +0100, Juerd [EMAIL PROTECTED] wrote:
David Nicol skribis 2004-12-30 0:17 (-0600):
See Lperlpod for discussion of the rarely
On Wed, 29 Dec 2004 22:12:03 -0500, David Manura [EMAIL PROTECTED] wrote:
OLD: And there are F, S, X and Z, but they're rarely used so not worth
explaining in
a simple tutorial.
NEW: And there are F, S, X and Z, but they're rarely used and not worth
explaining in
a simple tutorial.
See
On Fri, 24 Dec 2004 22:56:09 +0100, Juerd [EMAIL PROTECTED] wrote:
* see together
And actually every single word that can be seen as Perl jargon.
synopsis is not Perl jargon, it's a simple english word, a fancy way to
say summary, and stating that it's Greek for together, with the eyes
is yes,
this sounds to me like a job for capability keys. Capability keys are implied
in the solutions proposed, but the capability is generally act as
agent A rather
than having capabilities at a different level of abstraction, where
the capability
is to write to a particular project rather than to act
not given an parameter.
i wish we had better polymorphism.
David Nicol
On Tue, 07 Dec 2004 18:52:49 +, Mike Guy [EMAIL PROTECTED] wrote:
Elizabeth Mattijsen [EMAIL PROTECTED] wrote
How would giving a @ prototype break things at the outside ? I
assume you mean a \@ prototype?
I'm sure he
references are not implemented in this release of perl);
#endif
On Mon, 6 Dec 2004 23:14:40 -0600, David Nicol [EMAIL PROTECTED] wrote:
how about
@object = map { weaken $_ } grep {defined } @object;
or altering Scalar::Util::Weaken to take $_ by default
and to take an array as arguments
is there an embedded perl mailing list?
On Thu, 18 Nov 2004 10:23:49 +0300, Konovalov, Vadim
[EMAIL PROTECTED] wrote:
I did same thing recently: I tried to cross-compile Perl for my
linux-enabled TV satellite receiver, but once I downloaded and get working
GCC there I stopped trying to do
It sounds
like you're saying that
we want to move the check for literals of any sort appearing
immediately after a binding operator to
happen earlier.
Is that a fair paraphrase?
.
Or is there a problem with doing networking in DESTROY blocks that I
don't know about?
On Fri, 5 Nov 2004 16:03:01 -0500, Kurt Starsinic [EMAIL PROTECTED] wrote:
On Fri, 5 Nov 2004 00:43:28 -0600, David Nicol [EMAIL PROTECTED] wrote:
Does anyone feel a need for some perl modules
On Sun, 07 Nov 2004 06:03:59 +0100, Tassilo von Parseval
[EMAIL PROTECTED] wrote:
On Sat, Nov 06, 2004 at 09:18:57PM -0600 David Nicol wrote:
On Sat, 06 Nov 2004 14:10:31 +0100, Tassilo von Parseval
my $c = bar;
my $string = foo$c;
Trying to come up with an optimization
Does anyone feel a need for some perl modules to facilitate locking against a
centralized lock management service?
trie optimization for regexp groups means optimizing things like
m/(flash|flat|flatulent|flabby)\b/
into things like
m/fla(sh|bby|(t(|ulent)))\b/
right?
I wonder if it would be possible to do it with a regex preprocessor.
On Tue, 26 Oct 2004 11:49:13 +0100, Nicholas Clark
On Tue, 26 Oct 2004 10:30:08 +0100, Orton, Yves [EMAIL PROTECTED] wrote:
You cant detect the consequence of the eval but you can detect the eval no?
So you could disable the optimisation if there is no eval between the
constant assignment and the stringification
yeah that's what I was
I am a little surprised that we don't (can't?) re-use the existing @_ .
On Sun, 24 Oct 2004 00:28:46 +0100, Dave Mitchell [EMAIL PROTECTED] wrote:
My new scheme is to simply transfer the reifiedness of the old @_ to the
new @_ then ditch the old @_ (without decrementing the refcnt of its
okay. so lexicals that have not had references taken from them and
have not existed
while an eval is in place in their scope
get marked as early replacable whenver they get a constant
assigned, and the flag gets cleared when
assigned to by something not a constant
a reference is
when a lexical variable is not written to between getting assigned
from a constant and getting interpolated, replace the value in the
string at compile time
example:
sub statename{
my $name = 'david';
return hello my name is $name;
}
--
David L Nicol
transportation infrastructure
i don't think this matters.
When do you need to catch destruction of an anonymous coderef that is
not a closure?
Objects based on coderefs tend to be closures, so they can have their own
instance variables.
We could document the shared aspect in the documentation on DESTROY if
it's really that
, and DESTROY will not be called at all.
On Tue, 19 Oct 2004 08:48:17 + (UTC), Ton Hospel
[EMAIL PROTECTED] wrote:
In article [EMAIL PROTECTED],
David Nicol [EMAIL PROTECTED] writes:
i don't think this matters.
When do you need to catch destruction of an anonymous coderef
here's the arguably obvious workaround, since the bug applies to the
list returned
from assignment of a list to a hash, don't use
assignment-of-an-array-to-a-hash as an
rvalue. One assumes that Boris did this to get the result he wanted.
$ perl -MData::Dumper -le '%h = (1 = 2, a=b, c = 2); %x =
[EMAIL PROTECTED]:/home/p4work/TI/RTLGen perl -we 'use strict; $::foo=hi; print
${::foo}\n'
Bareword ::foo not allowed while strict subs in use at -e line 1.
${::foo} is a symbolic reference and resolves to $main::foo at run time.
The used only once is reported at end of compile phase
C becomes quotes, which is correct, and the bits in question are code,
so why not use the Cq operator rather than quote marks, to differentiate
the two cases, and both versions get wrapped in no-longer-confusing quote marks.
One effect of these rules is that C-bareword is equivalent
to
On Sat, 2004-08-21 at 02:59, Aaron Sherman wrote:
If you really feel that perlop needs [documentation of
coding conventions regarding no-ops] (is perlop
the right place for it?), then ...
perlstyle might be ripe for some addenda
--
david nicol
Someday, everything's going
/; # okay, because
# fields only appears in common ancestor
This concludes my suggestion regarding the topic at hand, relevant
to the issue of extending the base pragma to croak in certain
situations.
david nicol
--
david nicol
Someday, everything's going
= $a} @Ar'
5two
5one
4two
4one
[EMAIL PROTECTED] david]$ perl -le '@Ar = qw/5one 4one 5two 4two/; $default =
0; print foreach sort {$b = $a or $default} @Ar'
5one
5two
4one
4two
--
david nicol
People used to be able to read my thoughts, but
it doesn't appear to work any more. Should I eat
On Mon, 2004-07-12 at 09:25, [EMAIL PROTECTED] (via RT) wrote:
I suggest a shorter, one-line version of the explanation from perldiag:
If the Perl script is being executed as perl scriptname, then the
-T option must appear on the command line: perl -T scriptname.
s/If the/When a/
On Mon, 2003-11-03 at 07:27, Rafael Garcia-Suarez wrote:
David Nicol has some problems with a snippet of code where he's
s/Nicol/Dyck/
eval()'ing a string that contains a scalar variable in an END block (bug
#24296). Dave Mitchell explains what's happening and provides some
insight
-i, which rules it out for reusable code.
i find it hard to imagine that a long-lived server that slurps
its data files might get invoked under -i, which is primarily
for one-liners.
--
david nicol / A thousand towers rise before me and I cannot climb them all.
of STORE gratuitously returning values.
The attached patch rectifies the situation, unless STORE once needed
to return the stored value, in which case we sould say when the change
occurred.
David Nicol
--
david nicol / A thousand towers rise before me and I cannot climb them all.
--- ../perl
handle, closing the second
handle, unlocking, then closing the first handle.
Is that going to be safe and portable?
--
david nicol / A thousand towers rise before me and I cannot climb them all.
will be faster than
allocating and deallocating all those mortals and the matrix for
storing them.
(what eldritch imagery!)
--
David Nicol / If at first you don't succeed, use a bigger hammer.
http://gallaghersmash.com
will.
On Fri, 2003-07-18 at 13:50, Eric Cholet wrote:
david nicol wrote:
Zero time impact isn't mutually exclusive with abandoning the PAUSE
web interface for different software. Let's say that the CPAN account
creation process asks me for my public key and generates me a pair
I don't provide
, to implement prototype-based
multiple dispatch. Possibly with a three-argument form of prototype()
-- David Nicol, independent consultant and contractor
Steve Jobs in 2004
On Wed, 2003-01-22 at 12:51, Aaron Sherman wrote:
merge %hash2 into %hash1
I couldn't get PadWalker.xs (the first failed prereq to Devel::Lexalias)
to compile so I couldn't try using
a lexical alias of the source and target, but the best results
for an each based merge were with local globs:
89 matches
Mail list logo