[29319] in Perl-Users-Digest
Perl-Users Digest, Issue: 563 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Jun 23 09:09:57 2007
Date: Sat, 23 Jun 2007 06:09:11 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sat, 23 Jun 2007 Volume: 11 Number: 563
Today's topics:
Re: 12 hour clock and offset problem <hjp-usenet2@hjp.at>
Re: FAQ 1.14 What is a JAPH? (Steven M. O'Neill)
Re: FAQ 1.6 What is perl6? <bik.mido@tiscalinet.it>
Re: FAQ 1.6 What is perl6? <bik.mido@tiscalinet.it>
Re: FAQ 1.7 How stable is Perl? <bik.mido@tiscalinet.it>
Help: About 'if' structure <openlinuxsource@gmail.com>
Re: Help: About 'if' structure <tadmc@seesig.invalid>
Re: Help: About 'if' structure <mritty@gmail.com>
Re: pairwise_test <bik.mido@tiscalinet.it>
Re: Regex resetting the capture buffer <dalessio@motorola.NOSPAM.com>
Re: Rose Perl Reverse engg problems : Bad File Name <bik.mido@tiscalinet.it>
Re: SSH plus tail -f without key exchange possible? <zentara@highstream.net>
Re: The Modernization of Emacs <dak@gnu.org>
Re: The Modernization of Emacs: terminology buffer and <dak@gnu.org>
Re: The Modernization of Emacs: terminology buffer and <dak@gnu.org>
Re: The Modernization of Emacs: terminology buffer and <dak@gnu.org>
Re: The Modernization of Emacs: terminology buffer and <dak@gnu.org>
Re: The Modernization of Emacs: terminology buffer and <dak@gnu.org>
Re: The Modernization of Emacs: terminology buffer and <cor@clsnet.nl>
the use of removeChild() in Tree::Simple Lovingu.McDull@gmail.com
Re: Trying to make sense of perl for web development. <bik.mido@tiscalinet.it>
Re: Trying to make sense of perl for web development. <bik.mido@tiscalinet.it>
Re: Which Perl 5 OO extension can be seen as "standard" <bik.mido@tiscalinet.it>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 23 Jun 2007 12:18:13 +0200
From: "Peter J. Holzer" <hjp-usenet2@hjp.at>
Subject: Re: 12 hour clock and offset problem
Message-Id: <slrnf7psr5.8ng.hjp-usenet2@zeno.hjp.at>
On 2007-06-18 11:03, anno4000@radom.zrz.tu-berlin.de <anno4000@radom.zrz.tu-berlin.de> wrote:
> The "x mod y" operation can be consistently defined for all real x and
> y through
>
> x mod y = x - y*floor(x/y) (y != 0)
> y mod 0 = x
Ex falso quodlibet?
But I think you mean:
x mod 0 = 0
hp
--
_ | Peter J. Holzer | I know I'd be respectful of a pirate
|_|_) | Sysadmin WSR | with an emu on his shoulder.
| | | hjp@hjp.at |
__/ | http://www.hjp.at/ | -- Sam in "Freefall"
------------------------------
Date: Sat, 23 Jun 2007 12:51:15 +0000 (UTC)
From: steveo@panix.com (Steven M. O'Neill)
Subject: Re: FAQ 1.14 What is a JAPH?
Message-Id: <f5j503$79b$1@reader2.panix.com>
PerlFAQ Server <brian@stonehenge.com> wrote:
> print "Just another Perl hacker,";
>
> Note the trailing comma and space [...]
I'm trying, but am unable to note a space.
--
Steven O'Neill steveo@panix.com
Brooklyn, NY http://www.panix.com/~steveo
------------------------------
Date: Sat, 23 Jun 2007 14:25:39 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: FAQ 1.6 What is perl6?
Message-Id: <e84q73dcmbtfa0fu75c4nmq1nkggiv783a@4ax.com>
On Tue, 10 Apr 2007 00:03:02 -0700, PerlFAQ Server
<brian@stonehenge.com> wrote:
>1.6: What is perl6?
Isn't this a partial duplicate of "1.4: What are perl4, perl5, or
perl6?"
How about merging the two entries?
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Sat, 23 Jun 2007 14:27:19 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: FAQ 1.6 What is perl6?
Message-Id: <ec4q73lg3f63ginndhdqelqpvkcecgh5of@4ax.com>
On Fri, 22 Jun 2007 11:52:09 -0700, "Clenna Lumina"
<savagebeaste@yahoo.com> wrote:
>But, Larry Wall's own words do seem to add a hint of contradicting to
>soem of the preachings. Yes, it good to use what's workign well and
>accepted and I suport that notion, but if that were always the case,
>then there wouldn't be a Perl6 in the works :)
That's the default, and I'm not changing my mind ever again, at least
till next week.
- Larry Wall in p6l, "Re: method calls on $self".
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Sat, 23 Jun 2007 14:31:59 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: FAQ 1.7 How stable is Perl?
Message-Id: <mf4q73lsbcnr37cnd2n6tc9vs23fpss56q@4ax.com>
On Fri, 22 Jun 2007 11:26:08 -0500, brian d foy
<brian.d.foy@gmail.com> wrote:
>In article <C9udnSLNF7-QUebbnZ2dnUVZ_hWdnZ2d@giganews.com>, Purl Gurl
><purlgurl@purlgurl.net> wrote:
[snip]
>> This FAQ needs an inclusion,
>>
>> "Perl 6 will render every prior Perl version program absolutely unstable."
>
>The FAQ is fine. You will still be able to run Perl 5 programs with
>your Perl 5 interpreter. No one is going to take away Perl 5.
So it seems to up'n'running again: I'm not really sure because I've
long killfiled it. But the traces in replies are clear: how funny to
notice that it seems to have turned a 6-enthusiast; last I knew it was
a very 4-ish kinda gir^Hthingie. Skipped 5 altogether?!?
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Sat, 23 Jun 2007 19:12:36 +0800
From: "Amy Lee" <openlinuxsource@gmail.com>
Subject: Help: About 'if' structure
Message-Id: <pan.2007.06.23.11.12.35.801789@gmail.com>
Hello,
I'm a Perl newbie, and I have a problem about the 'if' structure.
If I wanna use more than one cpmparisons, how can I accomplish this
function in perl?
For example, in Shell script:
if [ "$#" -eq 0 -a -e "$somefile" ]
'-a' means "AND".
And in perl, I have two comparison, I wanna combine them.
1.if (@ARGV == 0)
2.if (-e $somefile)
Thank you in advance~
Amy Lee
------------------------------
Date: Sat, 23 Jun 2007 06:28:17 -0500
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: Help: About 'if' structure
Message-Id: <slrnf7q0uh.fpi.tadmc@tadmc30.sbcglobal.net>
Amy Lee <openlinuxsource@gmail.com> wrote:
> If I wanna use more than one cpmparisons, how can I accomplish this
> function in perl?
>
> For example, in Shell script:
> '-a' means "AND".
In Perl, "and" means "AND", and "&&" means "AND" too.
They are documented in the perlop.pod man page.
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: Sat, 23 Jun 2007 11:36:27 -0000
From: Paul Lalli <mritty@gmail.com>
Subject: Re: Help: About 'if' structure
Message-Id: <1182598587.878535.238330@n2g2000hse.googlegroups.com>
On Jun 23, 7:12 am, "Amy Lee" <openlinuxsou...@gmail.com> wrote:
> I'm a Perl newbie,
Greetings.
> and I have a problem about the 'if' structure.
Not really. You have a question about logical operators. You just
want to use them as the condition to an if statement.
> If I wanna use more than one cpmparisons, how can I accomplish this
> function in perl?
>
> For example, in Shell script:
>
> if [ "$#" -eq 0 -a -e "$somefile" ]
>
> '-a' means "AND".
>
> And in perl, I have two comparison, I wanna combine them.
>
> 1.if (@ARGV == 0)
> 2.if (-e $somefile)
There are two "AND" operators in Perl. '&&' and 'and'. They are
functionally equivalent, but '&&' has a higher precedence than 'and'.
So in your case, you might do:
if (@ARGV == 0 and -e $somefile) { ... }
or
if (@ARGV == 0 && -e $somefile) { ... }
For a full list of operators in Perl, and their precedence chart, open
a command window and type:
perldoc perlop
Paul Lalli
------------------------------
Date: Sat, 23 Jun 2007 14:39:04 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: pairwise_test
Message-Id: <r25q73pt29mrnusf8q72ujpai4o7c5kfjg@4ax.com>
On Mon, 18 Jun 2007 11:10:22 +0200, "Dr.Ruud"
<rvtol+news@isolution.nl> wrote:
>> print first { $x[$_] != $y[$_] } 1..max($#x,$#y);
>
>ITYM 0 .. max($#x,$#y).
No, I meant... yes, I did!
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Fri, 22 Jun 2007 09:16:55 -0500
From: "Mario D'Alessio" <dalessio@motorola.NOSPAM.com>
Subject: Re: Regex resetting the capture buffer
Message-Id: <f5gm0j$2gc$1@newshost.mot.com>
>> Please explain the order in which Perl processes line 1.
>
> Do you mean "line 2"?
Yes. I just typed a typo.
Thanks for all the reponses. I now fully understand.
Mario
------------------------------
Date: Sat, 23 Jun 2007 14:56:00 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: Rose Perl Reverse engg problems : Bad File Name
Message-Id: <pa5q7315f9kg34vv4vg8ptrsme5km1bmbh@4ax.com>
On Wed, 20 Jun 2007 08:22:18 -0700, ebandook@gmail.com wrote:
>I am trying to reverse engineer a *test* perl module using rational
>rose. I start by opening a new perl project. Load up the file in rose
Huh?!? What is rational rose? (/me ^K to Wikipedia...) Ok, I find
this:
http://en.wikipedia.org/wiki/Rational_rose#Rational_products
>using Tools->Perl->Reverse Engineer
A quick ^F-perl doesn't find anything there. Well, wp is good but not
the whole universe, and the menu chain you mention suggests Perl
*should* be supported. Whatever... I know 'bout rants like
<http://perlmonks.org/?node_id=622702> (at least this one is by a very
good hacker, notwithstanding the fact that I disagree with him) which
you may feel like doing as well... but... in all earnestness... this
RR thingie doesn't seem to be such a well known one. I think you
*really* would be more lucky finding the info you need elsewhere,
perhaps in a resource dedicated to it. The vast majority of
discussions here are about actual *Perl*.
>Also recomendations of reverse engineering perl code using other tools
>are welcome.
>
>Thanks
>Ebby
>
>The Code: test.pm
[snip]
It is very clear to see what the code does. Although it is not very
clear why it does it, and why it does it so bad. (Basically you have
three identical subs which do the same thing, that is printing the
number of arguments passed in, and using an unnecessary variable.)
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Sat, 23 Jun 2007 08:14:12 -0400
From: zentara <zentara@highstream.net>
Subject: Re: SSH plus tail -f without key exchange possible?
Message-Id: <7e3q73t1ihebeokjvpkg0vsl0jutk2dqhv@4ax.com>
On Fri, 22 Jun 2007 08:53:37 -0700, jrpfinch <jrpfinch@gmail.com> wrote:
>> Since you don't *want* to issue a discrete command, then don't
>> use ->cmd(). Use the advanced methods, maybe either socket or
>> register_handler.
>
>Thank you - register_handler was just the trick.
>
>I based my code on eg/remoteinteract.pl supplied with the
>Net::SSH::Perl source.
If you can switch to Net::SSH2, you can use it "shell in a channel".
http://perlmonks.org?node_id=621761
See shmem's response about avoiding the diamond operator.
zentara
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
------------------------------
Date: Sat, 23 Jun 2007 10:05:15 +0200
From: David Kastrup <dak@gnu.org>
Subject: Re: The Modernization of Emacs
Message-Id: <85r6o3gkp0.fsf@lola.goethe.zz>
nebulous99@gmail.com writes:
> PS you'll have to stop posting such a high volume here. I'm getting
> BS from Google Groups about posting limits being exceeded again.
Oh, but that just means that _YOU_ will have to stop posting such a
high volume here. Others are not affected. Though I have no doubt
they'll welcome a thinning out of this thread (followups directed to
comp.emacs for that reason).
> Apparently they've lowered it still further, from 25 in a 24 hour
> period to 12 or so in a 24 hour period. Fuckers.
How about making _summary_ answers then? Your whole contributions
boil down to "You must be lying. This can't be Emacs you are talking
about, since I know Emacs intimately because of having looked at an
old version of it for half an hour about 10 years ago." anyway. You
don't need to post this 12 times per day. You don't even need to post
this at all. It does not get any less stupid by repetition.
What _is_ sort of amusing is that years ago you already accused me of
forgery when I pointed you to the Emacs screenshots on the
preview-latex
<URL:http://www.gnu.org/software/auctex/preview-latex.html> page.
It appears that you still have not bothered educating yourself, years
after you were pretty much universally derided in comp.text.tex for
making a spectacle of your self-chosen ignorance.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
------------------------------
Date: Sat, 23 Jun 2007 09:24:04 +0200
From: David Kastrup <dak@gnu.org>
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <85sl8jb0bv.fsf@lola.goethe.zz>
Twisted <twisted0n3@gmail.com> writes:
> That's entirely orthogonal to the issue of interface learning curve
> OR interface ease-of-use. Emacs has deficiencies in both areas, if
> principally the former. (For an example of the latter, consider
> opening a file. Can't remember the exact spelling and capitalization
> of the file name? Sorry, bud, you're SOL. Go find it in some other
> app and memorize the name, then return to emacs. Now THAT is what I
> call disruptive context switching.
Again, you are talking nonsense out of ignorance. When you are _not_
using filename completion, any case entry on a case insensitive file
system will work (even when we are talking about a FAT/NT file system
mounted on Unix). And _when_ you are using filename completion, on
_those_ systems where case insensitive file names are standard
(DOS/Windows/VMS/MacOSX), Emacs will notice and replace stuff with the
proper case _when completing_ (in all other cases, there is no problem
in mixing up case in the context of case insensitive file systems).
If you want a different standard than that of your operating system,
customize the variable `read-file-name-completion-ignore-case'.
It would probably be most clever if Emacs completed case-independently
only on those parts of a file name which are on a case-independent
file system (or a case independent context) so that a file name like
/dak@box.gnu.org:/media/usbstick/Photos/nice.jpg
~~~~~~~~~~~ ~~~~~~~~~~~~~~~
would get case-insensitive completion just on the underlines areas.
In practice, it is actually more the users than the operating systems
which are or are not comfortable with the consequences of case
sensitivity, and so making the default depend on the default
convention of the system seems reasonable.
So please: before you continue spewing about a system you don't even
know, could you educate yourself about the state of affairs?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
------------------------------
Date: Sat, 23 Jun 2007 09:26:29 +0200
From: David Kastrup <dak@gnu.org>
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <85odj7b07u.fsf@lola.goethe.zz>
Twisted <twisted0n3@gmail.com> writes:
> HOW IN THE BLOODY HELL IS IT SUPPOSED TO OCCUR TO SOMEONE TO ENTER
> THEM, GIVEN THAT THEY HAVE TO DO SO TO REACH THE HELP THAT WOULD
> TELL THEM THOSE ARE THE KEYS TO REACH THE HELP?!
Because there is a menu called "HELP" and because the "standard"
keybinding for help, f1, brings up help?
Not to mention that there is an initial splash screen pointing this
out?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
------------------------------
Date: Sat, 23 Jun 2007 09:31:37 +0200
From: David Kastrup <dak@gnu.org>
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <85k5tvazza.fsf@lola.goethe.zz>
Pascal Bourguignon <pjb@informatimago.com> writes:
> Falcolas <garrickp@gmail.com> writes:
>>
>> Would you mind elaborating on *what* took 3 hours to do, as opposed
>> to just throwing around unquantified numbers? Would you also mind
>> explaining the user's familiarity with the tools they were using on
>> the mac?
>
> Anything that the user have to do repeatitively with the GUI, like
> copy-and-paste, or reformating of a lot of paragraphs or table
> entries, and which is done automatically by writting a one-liner
> program in emacs or shell.
Actually, in Emacs the task more often than not is solved by using
C-h a or M-x apropos and then finding the command that already does
the job.
>> It's just as easy for me to say that it took me 30 minutes to
>> simply exit emacs, and use that to justify that emacs, and by
>> extension Linux, is a terrible tool.
Somebody who needs 30 minutes to find the File/Exit Emacs menu is not
qualified for reporting _any_ computing experience.
It is like letting yourself get a report about the points of violin
playing from somebody who has just had his first exposure to music,
incidentally in the form of a violin lesson.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
------------------------------
Date: Sat, 23 Jun 2007 09:43:16 +0200
From: David Kastrup <dak@gnu.org>
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <85ejk3azjr.fsf@lola.goethe.zz>
Falcolas <garrickp@gmail.com> writes:
> On Jun 22, 11:28 am, Robert Uhl <eadmun...@NOSPAMgmail.com> wrote:
>
>> It's Mac OS and Windows which are inconsistent. Emacs has been
>> around since they were mere glimmers in the eye of Jobs & Gates...
>
> Inconsistent? I would have to disagree. They changed paradigms -
> terminal text based interfaces to GUIs. You wouldn't expect a piece
> of software built for a terminal to be backwards compatibility to
> punch card interfaces, would you?
You are aware that the ubiquitous standard terminal width of 80
columns has been chosen to match the 80-column punch card standard?
> Why would a GUI based program limit itself to functionality as
> defined by a terminal application?
Emacs uses variable width fonts, can deal with a larger-than-8bit
variety of GUI-based input events and can display images. Take a look
at the screen shots for preview-latex
<URL:http://www.gnu.org/software/auctex/preview-latex.html>
illustrating WYSIWYG LaTeX editing in Emacs windows.
So what is your problem?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
------------------------------
Date: Sat, 23 Jun 2007 09:55:44 +0200
From: David Kastrup <dak@gnu.org>
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <85vedfgl4v.fsf@lola.goethe.zz>
Twisted <twisted0n3@gmail.com> writes:
> HOW IN THE BLOODY HELL IS IT SUPPOSED TO OCCUR TO SOMEONE TO ENTER
> THEM, GIVEN THAT THEY HAVE TO DO SO TO REACH THE HELP THAT WOULD
> TELL THEM THOSE ARE THE KEYS TO REACH THE HELP?!
Because there is a menu called "HELP" and because the "standard"
keybinding for help, f1, brings up help? And because there is that
standard GNOME icon of a lifesaver which you can click?
Not to mention that there is an initial splash screen pointing most of
this out?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
------------------------------
Date: 23 Jun 2007 12:10:01 +0000
From: Cor Gest <cor@clsnet.nl>
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <87bqf6c1nq.fsf@telesippa.clsnet.nl>
Some entity, AKA Tim Roberts <timr@probo.com>,
wrote this mindboggling stuff:
(selectively-snipped-or-not-p)
> Boys, do you really not understand that this is a religious issue? You
> can't use arguments and logic to convince someone to convert their
> religion, and you can't use arguments and logic to convince someone to
> change editors.
Nah, nothing beats a nice flame-war on a slow fridaynight & a Pint
of Bitter, while it spares the fingers to keep on manipulating all those nice
keyboard-modifiers to nag the ignorati for an other day ... ;-)
Cor
--
(defvar MyComputer '((OS . "GNU/Emacs") (IPL . "GNU/Linux")))
The biggest problem LISP has, is that it does not appeal to dumb people
If that fails to satisfy read the HyperSpec, woman frig or Tuxoharata
mailpolicy @ http://www.clsnet.nl/mail.php
------------------------------
Date: Sat, 23 Jun 2007 12:18:34 -0000
From: Lovingu.McDull@gmail.com
Subject: the use of removeChild() in Tree::Simple
Message-Id: <1182601114.974800.130750@m37g2000prh.googlegroups.com>
I am currently using Tree::Simple module.
I originally have a tree x. My task is to insert a node G into x, so
that the B node under A go under G.
My solution is: I create G first, then G->addChild(B). then disconnect
B from A, finally A->addChild(G).
x:
A
/ \
B E...
/\ |
C D F...
y:
A
/ \
G E...
| |
B F...
/\
C D
But it seems the disconnection can't be achieved by using
removeChild(), according to the specification,
"When a child is removed, it results in the shifting up of all
children after it, and the removed child is returned."
That is, if i delete B from x, the tree will look like this. It is
difficult for me to A->addChild(G) to this intermediate tree.
A
/ \ \
C D E...
|
F...
Any suggestions? //P.S. I prefer a solution in which the nodes are
relocated rather than being removed and regenerated.
------------------------------
Date: Sat, 23 Jun 2007 14:59:13 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: Trying to make sense of perl for web development.
Message-Id: <e56q73d2j7kgsm2t8b4cpl8nljgkihl7qs@4ax.com>
On Thu, 21 Jun 2007 04:27:26 -0000, cendrizzi <cendrizzi@gmail.com>
wrote:
>successfully connect to the db?! In PHP you can turn on errors and
>warnings to display them in the page, I'm sure Perl is just
>different. How can I troubleshoot this stuff?
In Perl, you can do it quite easily. Cool stuff off CPAN as usual. But
the practice is generally *discouraged* except perhaps in development
phases. Which brings us back to the (PHP => rookie, Perl => hacker)
kinda flame... :-)
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Sat, 23 Jun 2007 15:02:48 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: Trying to make sense of perl for web development.
Message-Id: <cb6q731mv8su6u7rdqtamuhhlai58scst4@4ax.com>
On Thu, 21 Jun 2007 12:54:24 -0000, cendrizzi <cendrizzi@gmail.com>
wrote:
>I will do this for sure. For someone newer to perl it is somewhat
"this"?!? (Hint: *please* quote some trimmed content from the posts
you're replying to.)
>bewildering (and exciting) how many modules exist. Just looking for
>postgres drivers made me feel overwhelmed.
Hehe!
: CPAN is my programming language of choice; the rest is just syntax.
: - Autrijus Tang, Perl 6 is Here Today
: (http://pugscode.org/talks/apw/start.html)
>BTW, is mod_perl the best way to go? It seems from most things I've
>read to have some nice advantages.
Not a webby kinda guy by any means, but from discussions I could
recollect I've seen experienced hackers expressing very good comments
about FastCGI and lighttpd.
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Sat, 23 Jun 2007 14:37:48 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: Which Perl 5 OO extension can be seen as "standard" (defacto, quasi)?
Message-Id: <5v4q7351vfjkf289iu2vfnc0qpbt40pbtj@4ax.com>
On Mon, 18 Jun 2007 08:06:25 -0700, Ilias Lazaridis
<ilias@lazaridis.com> wrote:
>"Moose Perl 6 OO in Perl 5"
>http://svn.pugscode.org/pugs/v6/docs/kp6-Notes.txt
Anyway, from
<http://search.cpan.org/~groditi/Moose-0.23/lib/Moose.pm>:
: Is Moose just Perl 6 in Perl 5?
:
: No. While Moose is very much inspired by Perl 6, it is not itself Perl
: 6. Instead, it is an OO system for Perl 5. I built Moose because I was
: tired of writing the same old boring Perl 5 OO code, and drooling over
: Perl 6 OO. So instead of switching to Ruby, I wrote Moose :)
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 563
**************************************