[27719] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 9132 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Apr 7 21:05:45 2006

Date: Fri, 7 Apr 2006 18:05:04 -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           Fri, 7 Apr 2006     Volume: 10 Number: 9132

Today's topics:
    Re: [VERY OT] Seeya all! <matthew.garrish@sympatico.ca>
    Re: Namespace resolution question: I'm somewhat puzzled <Marcin.Kasperski@softax.com.pl>
    Re: XS progamming question <nospam-abuse@ilyaz.org>
    Re: XS progamming question <nospam-abuse@ilyaz.org>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Fri, 7 Apr 2006 18:29:29 -0400
From: "Matt Garrish" <matthew.garrish@sympatico.ca>
Subject: Re: [VERY OT] Seeya all!
Message-Id: <5JBZf.3301$sh3.241000@news20.bellglobal.com>


"Michele Dondi" <bik.mido@tiscalinet.it> wrote in message 
news:km98329abpamf2q03goa0b7ic1afd60gm4@4ax.com...
> On Thu, 20 Jan 2005 20:56:45 +0100, in comp.lang.perl.misc I wrote:
>
>>Dear all,
>>
>>
>>I can't go on like this any more: I must take this f**ked up degree!
>
> Just done, Folks!
> ;-)
>

Not you again... ; )

Matt 




------------------------------

Date: Fri, 07 Apr 2006 20:29:43 +0200
From: Marcin Kasperski <Marcin.Kasperski@softax.com.pl>
Subject: Re: Namespace resolution question: I'm somewhat puzzled
Message-Id: <87mzexjl2g.fsf@cauchy.softax.local>


> use Bar::BarTools;
>
> Later in FooTools.pm, I want to use a function func() that lives in
> BarTools.pm. I expected this to work:
>
> Bar::BarTools::func();
>
> It did not, telling me that it could not find the function, though it
> is certainly present in MyLib/Bar/BarTools.pm. This, however, *did*
> work:
>
> BarTools::func();

I strongly suspect that you incorrectly declared package in
BarTools. Probably you have there 'package BarTools', while you should
have 'package Bar::BarTools'.


Directories are used by perl for searching for the FILES to
load. Then, package directives decide what MODULES are the functions
present in the file loaded to.

You can even do dirty tricks, like putting a few different packages
into single file.



------------------------------

Date: Fri, 7 Apr 2006 23:11:31 +0000 (UTC)
From:  Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: XS progamming question
Message-Id: <e16rj3$1kt8$1@agate.berkeley.edu>

[A complimentary Cc of this posting was sent to
Ferry Bolhar
<bol@adv.magwien.gv.at>], who wrote in article <1144413138.997628@proxy.dienste.wien.at>:
> > Why do you want to do it in C?  Do it in Perl instead...

> I have different (internal) C functions, but want to make visible to Perl
> only one of them, but always with the same name.

So, as I said, do it in Perl.

> I think the corresponding
> module BOOT section is a good place for this kind of action, isn't it?`

How can it be a good place if you miss the knowledge how to implement
it there?

Puzzled,
Ilya


------------------------------

Date: Fri, 7 Apr 2006 23:17:30 +0000 (UTC)
From:  Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: XS progamming question
Message-Id: <e16rua$1kue$1@agate.berkeley.edu>

[A complimentary Cc of this posting was sent to
Anno Siegel
<anno4000@lublin.zrz.tu-berlin.de>], who wrote in article <49nipaFplep1U1@news.dfncis.de>:
> > But what do you mean with "symref"?  I thought "*x" means "the
> > glob of the variable x".

("with the name `x'")

> That's true if x is a valid Perl identifier (a variable name without
> the sigil $, %, ..., * in our case), which "3" isn't.

"3" is.  Witness $3, @3, %3, *3 etc.

  perl -wle '%5 = (fpp => 23); *3 = \%5; print $3{fpp}'

Hope this helps,
Ilya


------------------------------

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 V10 Issue 9132
***************************************


home help back first fref pref prev next nref lref last post