[26006] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 8224 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jul 4 00:05:18 2005

Date: Sun, 3 Jul 2005 21: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           Sun, 3 Jul 2005     Volume: 10 Number: 8224

Today's topics:
        ActivePerl build 813 broken? <rtrahan@optonline.net>
    Re: ActivePerl build 813 broken? <sisyphus1@nomail.afraid.org>
    Re: ActiveState license: I can't distribute perl with m <sisyphus1@nomail.afraid.org>
    Re: ActiveState license: I can't distribute perl with m <nomail@sorry.com>
        scope question <rtrahan@optonline.net>
    Re: scope question <tadmc@augustmail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Sun, 03 Jul 2005 21:02:56 -0400
From: Richard Trahan <rtrahan@optonline.net>
Subject: ActivePerl build 813 broken?
Message-Id: <OT%xe.412$js.201@fe10.lga>

I have been using build 811 since its release, and it has worked fine
on W98. With build 813, all my scripts cause page faults in MSVCRT.dll,
so I've gone back to 811. I don't want to waste my time hunting for
errors that may be ActiveState's fault; does anybody know what the
problem is with build 813 on W98?


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

Date: Mon, 4 Jul 2005 13:16:31 +1000
From: "Sisyphus" <sisyphus1@nomail.afraid.org>
Subject: Re: ActivePerl build 813 broken?
Message-Id: <42c8aa2b$0$10102$afc38c87@news.optusnet.com.au>


"Richard Trahan" <rtrahan@optonline.net> wrote in message
news:OT%xe.412$js.201@fe10.lga...
> I have been using build 811 since its release, and it has worked fine
> on W98. With build 813, all my scripts cause page faults in MSVCRT.dll,
> so I've gone back to 811. I don't want to waste my time hunting for
> errors that may be ActiveState's fault; does anybody know what the
> problem is with build 813 on W98?

I don't know of anything that ActiveState has done that would cause a
problem. (I also don't know what a page fault is.)

Can you provide a (mimimal) failing sample script along with any associated
error messages ?

Does a simple 'perl -V' produce the error, or does it only happen with
scripts ?

Cheers,
Rob




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

Date: Mon, 4 Jul 2005 04:55:05 +1000
From: "Sisyphus" <sisyphus1@nomail.afraid.org>
Subject: Re: ActiveState license: I can't distribute perl with my Windows application?
Message-Id: <42c834a6$0$9733$afc38c87@news.optusnet.com.au>


"Arvin Portlock" <nomail@sorry.com> wrote in message
news:da946b$10r$1@agate.berkeley.edu...

> > >Decline their offer, and you can compile it for yourself on Windows,
> > >but I don't know how difficult that might be...
> >
> >  Last time I tried it, I was pleasantly suprised by how easy it was.
> >
> >  Just set the installation directory in win32/Makefile, run "nmake",
> > "nmake
> > test" and "nmake install" from that directory, and it's done.
> >

It's just as simple with dmake and MinGW (gcc) - except in that case, of
course, your editing 'Makefile.mk' instead of 'Makefile'.

> Me and Visual C++ don't get along. But I can work with gcc.

Go for it. Dmake from:
http://search.cpan.org/dist/dmake/
and MinGW (gcc) from:
http://prdownloads.sf.net/mingw/MinGW-4.1.0.exe?download

Cheers,
Rob





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

Date: Sun, 03 Jul 2005 09:36:24 -0700
From: Arvin Portlock <nomail@sorry.com>
Subject: Re: ActiveState license: I can't distribute perl with my Windows application?
Message-Id: <da946b$10r$1@agate.berkeley.edu>

Andy Hassall wrote:

> On Sat, 2 Jul 2005 17:21:39 -0500, Tad McClellan  wrote:
>
> >ActiveState does not own Perl, they just offer an
> >already-compiled-for-you Perl.
> >
> >Decline their offer, and you can compile it for yourself on Windows,
> >but I don't know how difficult that might be...
>
>  Last time I tried it, I was pleasantly suprised by how easy it was.
>
>  Just set the installation directory in win32/Makefile, run "nmake", 
> "nmake
> test" and "nmake install" from that directory, and it's done.
>
>  README.win32 has instructions for free compilers including the free 
> cutdown MS
> compiler, which look more complicated but doable.

Me and Visual C++ don't get along. But I can work with gcc.
At first I didn't really take this suggestion too seriously
but the more I thought about it the more I agree it's completely
doable, even for me. I'm only creating the interpreter after
all. All of the modules and such are free and up for grabs.

My latest project is a tutorial on how to do what I'm doing,
making easy to use and easy to install perl programs for
Windows using Inno Setup, a packaged minimal perl installation,
desktop icons, config files with Config::IniFiles, etc. I want
to make sure all the licensing issues are absolutely correct.
Compiling my own perl and distributing it would help a lot more
people than just me, so I'm going to look into it. Thanks for
yout tips.

Arvin



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

Date: Sun, 03 Jul 2005 21:10:16 -0400
From: Richard Trahan <rtrahan@optonline.net>
Subject: scope question
Message-Id: <G_%xe.414$js.69@fe10.lga>

Consider the following code:

use strict;
{
   my $x = 5;
   our $sr = sub { print "$x\n"; };
}
&$sr;

This code gives a scope error, but if I remove 'use strict',
it works ok.

The 'our $sr' statement should make an entry in the SCALAR
slot of *main::sr, right? And the &$sr should retrieve only
that value, right?

What am I missing here?

Thanks.


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

Date: Sun, 3 Jul 2005 21:27:19 -0500
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: scope question
Message-Id: <slrndch7k7.2v9.tadmc@magna.augustmail.com>

Richard Trahan <rtrahan@optonline.net> wrote:
> Consider the following code:
> 
> use strict;
> {
>    my $x = 5;
>    our $sr = sub { print "$x\n"; };
> }
> &$sr;
> 
> This code gives a scope error, but if I remove 'use strict',
> it works ok.
> 
> The 'our $sr' statement should make an entry in the SCALAR
> slot of *main::sr, right? 


Right, the value is there.

You are having trouble _accessing_ that value though.


> What am I missing here?


All that "our" gets you is to make "use strict" shut up about using
short names rather than long names.

The "permission to use short names" is scoped, once outside that
scope, you must use the fully qualified package name again.

So:

   &{$main::sr};
or
   $main::sr->();

or, if you want to use the short name after the block, ask for that
with an

   our $sr;

after the block.


-- 
    Tad McClellan                          SGML consulting
    tadmc@augustmail.com                   Perl programming
    Fort Worth, Texas


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

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 8224
***************************************


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