[26327] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 8502 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Oct 9 06:05:46 2005

Date: Sun, 9 Oct 2005 03:05:07 -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, 9 Oct 2005     Volume: 10 Number: 8502

Today's topics:
    Re: ISO documentation on Perl's standard directory stru <sisyphus1@nomail.afraid.org>
    Re: ISO documentation on Perl's standard directory stru <socyl@987jk.com.invalid>
        Killer on the loose. <Fred@fred.net>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Sun, 9 Oct 2005 11:42:16 +1000
From: "Sisyphus" <sisyphus1@nomail.afraid.org>
Subject: Re: ISO documentation on Perl's standard directory structure
Message-Id: <434875cc$0$2135$afc38c87@news.optusnet.com.au>


"kj" <socyl@987jk.com.invalid> wrote in message
news:di9q3c$b7m$1@reader1.panix.com...
>
>
>
> Where is the standard structure for Perl directories and files
> documented?  I have seen many variants (e.g. /usr/lib/perl5
> or /usr/lib/perl/5.8.6, etc.)
>
> I suppose the answer to this question is OS-dependent.  I'm most
> interested in Linux (Debian and Suse), Mac OS X, ActiveState, and
> Cygwin.
>

With Win32 the install location is dependent upon options that you specify
in the Win32/Makefile when you build
perl. (Worth browsing through the configurable section of the
Makefile/Makefile.mk to see what's there.) Wrt ActiveState perl, as you
probably know, it installs into something like C:/perl. You can also build a
perl on Win32 that installs into something like C:/perl/5.8.7 by specifying
(in the Win32/Makefile) that you want your perl to be versioned. Here's what
the Makefile contains:

-------------------------------
#
# Comment this out if you DON'T want your perl installation to be versioned.
# This means that the new installation will overwrite any files from the
# old installation at the same INST_TOP location. Leaving it enabled is
# the safest route, as perl adds the extra version directory to all the
# locations it installs files to. If you disable it, an alternative
# versioned installation can be obtained by setting INST_TOP above to a
# path that includes an arbitrary version string.
#
#INST_VER = \5.8.7
-----------------------------

ActiveState, by leaving the Makefile like that, ensure that perl installs
into a non-versioned location (eg C:/perl).
Include that line, however, and perl will install into a versioned location
(eg C:/perl/5.8.7).

For nix type operating systems, the INSTALL file that ships with the perl
source would be a good reference. See also (in the perl source) the
README.OS files (where "OS" stands for a number of specific operating
systems - 'cygwin', 'win32', etc).

Hth.

Cheers,
Rob





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

Date: Sun, 9 Oct 2005 02:19:12 +0000 (UTC)
From: kj <socyl@987jk.com.invalid>
Subject: Re: ISO documentation on Perl's standard directory structure
Message-Id: <di9un0$o97$1@reader1.panix.com>

In <434875cc$0$2135$afc38c87@news.optusnet.com.au> "Sisyphus" <sisyphus1@nomail.afraid.org> writes:

>"kj" <socyl@987jk.com.invalid> wrote in message
>news:di9q3c$b7m$1@reader1.panix.com...
>>
>> Where is the standard structure for Perl directories and files
>> documented?  I have seen many variants (e.g. /usr/lib/perl5
>> or /usr/lib/perl/5.8.6, etc.)
>>
>> I suppose the answer to this question is OS-dependent.  I'm most
>> interested in Linux (Debian and Suse), Mac OS X, ActiveState, and
>> Cygwin.
>>

>With Win32 the install location is dependent upon options that you specify
>in the Win32/Makefile when you build
>perl. (Worth browsing through the configurable section of the
>Makefile/Makefile.mk to see what's there.) Wrt ActiveState perl, as you
>probably know, it installs into something like C:/perl. You can also build a
>perl on Win32 that installs into something like C:/perl/5.8.7 by specifying
>(in the Win32/Makefile) that you want your perl to be versioned. Here's what
>the Makefile contains:

>-------------------------------
>#
># Comment this out if you DON'T want your perl installation to be versioned.
># This means that the new installation will overwrite any files from the
># old installation at the same INST_TOP location. Leaving it enabled is
># the safest route, as perl adds the extra version directory to all the
># locations it installs files to. If you disable it, an alternative
># versioned installation can be obtained by setting INST_TOP above to a
># path that includes an arbitrary version string.
>#
>#INST_VER = \5.8.7
>-----------------------------

>ActiveState, by leaving the Makefile like that, ensure that perl installs
>into a non-versioned location (eg C:/perl).
>Include that line, however, and perl will install into a versioned location
>(eg C:/perl/5.8.7).

>For nix type operating systems, the INSTALL file that ships with the perl
>source would be a good reference. See also (in the perl source) the
>README.OS files (where "OS" stands for a number of specific operating
>systems - 'cygwin', 'win32', etc).


Thanks, that's good to know.

kj

-- 
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.


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

Date: Sat, 08 Oct 2005 20:57:30 -0500
From: "Fred@fred.net" <Fred@fred.net>
Subject: Killer on the loose.
Message-Id: <jptgk19o6fg8ibuh5h4d9a5e0lffofh1rr@4ax.com>


Greetings, 
Where I work they have this PITA sort of kind of like a EULA that pops
up on my screen (in a notepade.exe window) when I authenticate into
the mothership. So, naturally I resented the hell out of it. The
obligitory mouse click is not to be tolerated till at least after
lunch. So I wrote this little diddy. Have a look, it's very simple.

I was hoping for comments about how to make it faster, to optimize it.
I hope the misc part of the NG's name is comprehensive, so I stay on
topic.


use Win32::Process;
use Win32::OLE('in');
$sobj = Win32::OLE->GetObject(
'winmgmts:{impersonationLevel=impersonate}')
 or die "can't create server object: ".Win32::OLE->LastError(  )."\n";
$i = 99;
while ( $i )  {
foreach $process (in $sobj->InstancesOf("Win32_Process")){
  push (@list, " $process->{Name} , $process->{ProcessID} \n");
}
foreach(@list) { if ((/notepad.exe/)||(/NOTEPAD.EXE/)) { # I know
							 # about //i	
                                      $_ =~ s/\D//g;
                                      kill 9, $_ ;
                                      $i = 0;
                                      }
                }
        }


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

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


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