On Fri, Aug 30, 2002 at 04:01:11PM +0200, Elizabeth Mattijsen wrote:
> Is there an easy way to check methods, whose loading is deferred with
> AutoLoader, with the can_ok() check?
Nope. You have to create stubs. The AutoLoader module should do this
automatically for you assuming you've gone th
On Fri, Aug 30, 2002 at 11:57:16AM +0100, Nick Ing-Simmons wrote:
> Michael G Schwern <[EMAIL PROTECTED]> writes:
> >On Fri, Aug 30, 2002 at 05:54:15PM +1000, Ken Williams wrote:
> >> Oh, one big lib/, not several different ones? So then why can't it be
> >> run with
> >>
> >> perl -Mblib=lib
At 10:28 AM 8/30/02 -0400, Bryan C. Warnock wrote:
>Why not a simple(!) magic hash, or an entire namespace?
>print $PROC{"memory used"};
>print $PROC::memory_used;
That would work for me... ;-)
Liz
On Fri, 2002-08-30 at 04:30, H.Merijn Brand wrote:
> I was thinking about highjacking a standard function: read ()
>
> read filehandle, $var, length [, offset]
>
> and use it like
>
> read [ \"PERL_status" ], $mem, "memory";
>
> which is very illegal at the moment :) but probably easy to catc
Is there an easy way to check methods, whose loading is deferred with
AutoLoader, with the can_ok() check? Or would some magic need to be added
to AutoLoader.pm?
Currently, you get an error that the subroutines do not exist.
Liz
-BEGIN PGP SIGNED MESSAGE-
Moin,
On 30-Aug-02 H.Merijn Brand carved into stone:
> On Fri 30 Aug 2002 10:33, Elizabeth Mattijsen <[EMAIL PROTECTED]> wrote:
>> At 10:30 AM 8/30/02 +0200, H.Merijn Brand wrote:
>> > > Being able to do so at any point in Perl's execution would be
>> > great.
Michael G Schwern <[EMAIL PROTECTED]> writes:
>On Fri, Aug 30, 2002 at 05:54:15PM +1000, Ken Williams wrote:
>> Oh, one big lib/, not several different ones? So then why can't it be
>> run with
>>
>> perl -Mblib=lib t/foo/bar.t
>>
>> ?
blib was invented to allow just such usage.
>
>Because
On Fri 30 Aug 2002 11:02, Michael G Schwern <[EMAIL PROTECTED]> wrote:
> On Fri, Aug 30, 2002 at 10:30:22AM +0200, H.Merijn Brand wrote:
> > I was thinking about highjacking a standard function: read ()
>
> Giving read() semantics completely unrelated to reading a filehandle would
> be a bad choi
On Fri, Aug 30, 2002 at 10:30:22AM +0200, H.Merijn Brand wrote:
> I was thinking about highjacking a standard function: read ()
Giving read() semantics completely unrelated to reading a filehandle would
be a bad choice of syntax. So would making it a keyword. Could you do it
(mostly) via XS?
On Fri, Aug 30, 2002 at 06:25:27PM +1000, Ken Williams wrote:
> This is because I've been frustrated a number of times by modules that
> died on CPAN when they got integrated into the core, but needed bugs to
> be fixed, but wouldn't see new versions until perl got maintenance
> releases...
Al
On Fri, Aug 30, 2002 at 05:54:15PM +1000, Ken Williams wrote:
> Oh, one big lib/, not several different ones? So then why can't it be
> run with
>
> perl -Mblib=lib t/foo/bar.t
>
> ?
Because tests all try to run from t/. That's what the chdir 't' is for.
t/TEST does this for you and so do t
On Fri 30 Aug 2002 10:33, Elizabeth Mattijsen <[EMAIL PROTECTED]> wrote:
> At 10:30 AM 8/30/02 +0200, H.Merijn Brand wrote:
> > > Being able to do so at any point in Perl's execution would be
> > great. Or is
> > > there such a thing already and I just don't know about it (and I'm not
> > > thin
At 10:30 AM 8/30/02 +0200, H.Merijn Brand wrote:
> > Being able to do so at any point in Perl's execution would be
> great. Or is
> > there such a thing already and I just don't know about it (and I'm not
> > thinking about GTop)...
>I was thinking about highjacking a standard function: read ()
On Fri 30 Aug 2002 10:15, Elizabeth Mattijsen <[EMAIL PROTECTED]> wrote:
> At 08:56 AM 8/30/02 +0200, H.Merijn Brand wrote:
> >Would it be a helpful indication to be able to have perl report the upper
> >memmory bound on exit? Or better, the memory used: upper- minus lower bound
>
> Being able to
On Thursday, August 29, 2002, at 05:53 PM, Nicholas Clark wrote:
> For information, my example was from the top of t/integer.t in Storable
> It looks like the same bit of code was cargo-cult cut & pasted (er, by
> me I think) from the other Storable tests (such as freeze.t) where they
> have to
At 08:56 AM 8/30/02 +0200, H.Merijn Brand wrote:
>Would it be a helpful indication to be able to have perl report the upper
>memmory bound on exit? Or better, the memory used: upper- minus lower bound
Being able to do so at any point in Perl's execution would be great. Or is
there such a thing
On Thursday, August 29, 2002, at 06:25 PM, Michael G Schwern wrote:
> On Thu, Aug 29, 2002 at 06:23:26PM +1000, Ken Williams wrote:
>> I admit that I was a little surprised to see 'lib' stuff here
>> and not 'blib' stuff. Don't blibs get created when building
>> modules in the core?
>
> Everyt
17 matches
Mail list logo