[22544] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 4765 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Mar 27 18:08:09 2003

Date: Thu, 27 Mar 2003 15:05:33 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Thu, 27 Mar 2003     Volume: 10 Number: 4765

Today's topics:
        administrator insufficient privileges <samj@austarmetro.com.au>
        another getopts::std question (david)
    Re: another getopts::std question <please@no.spam>
        Anyone know how to start a new lists.cpan.org mailing l (Christopher Maloney)
        array question <dmanjunath@yahoo.com>
    Re: array question <abigail@abigail.nl>
    Re: array question <barryk2@SPAM-KILLER.mts.net>
    Re: Can't locate object method "new" via package "Net:: <bart.lateur@pandora.be>
    Re: Can't locate object method "new" via package "Net:: (Leo)
        Can't Shanre variables between win32 threads in Perl (Peter Van Mayer)
    Re: Can't Shanre variables between win32 threads in Per <kalinabears@hdc.com.au>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Thu, 27 Mar 2003 22:14:57 GMT
From: "Sam Jesse" <samj@austarmetro.com.au>
Subject: administrator insufficient privileges
Message-Id: <3e8377da@news.comindico.com.au>

I get this error when I am trying to install ActivePerl 5.8.0 Build 805



The installer has insufficient privileges to access this directory: C:\Perl.
The installation cannot continue. Log on as administrator or contact your
system administrator.

I am logged in as the administrator and don't understand what is going on.

Thanks for any help with this frustrating problem.



Sam




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

Date: 26 Mar 2003 21:07:18 -0800
From: dwlepage@yahoo.com (david)
Subject: another getopts::std question
Message-Id: <b09a22ae.0303262107.2758b1ec@posting.google.com>

I have been looking at the perl module docs and other docs I can find
on getopts::std but I can seem to figure out the logic behind it. Ive
tried by writing what I thought was a simple program, but I can't seem
to get it to do what id expect. Any ideas?

#!/bin/perl -w

use Getopt::Std;

getopts('hmf:');

die "Usage: $0 [-h] [-m] [-f string]\n" if ($opt_h);

print "Option M was present\n" if ($opt_m);

print "Option F was passed '$opt_f\n" if ($opt_f);

print "No options given\n" if (!opt_f && !$opt_m);


Last question, if I use '-f [string]' what is the best way to
reference that file in an open statement -
open(IN, "<$opt_f") || die "cant open $!\n";  ???

Thanks,


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

Date: Thu, 27 Mar 2003 07:51:13 +0000
From: Chris Lowth <please@no.spam>
Subject: Re: another getopts::std question
Message-Id: <I4yga.1091$8s6.10113@newsfep4-glfd.server.ntli.net>

david wrote:


> #!/bin/perl -w
> use Getopt::Std;
> getopts('hmf:');
> die "Usage: $0 [-h] [-m] [-f string]\n" if ($opt_h);
> print "Option M was present\n" if ($opt_m);
> print "Option F was passed '$opt_f\n" if ($opt_f);
> print "No options given\n" if (!opt_f && !$opt_m);
                                  ^
Missing "$" ......................^

Chris
-- 
My real address is: chris at lowth dot sea oh em
-> OpenSource e-mail virus protection : http://protector.sourceforge.net
-> iptables configuration wizards : http://www.lowth.com/LinWiz


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

Date: 27 Mar 2003 08:20:03 -0800
From: dude@chrismaloney.com (Christopher Maloney)
Subject: Anyone know how to start a new lists.cpan.org mailing list?
Message-Id: <6be12ff5.0303270820.7d5ea17c@posting.google.com>

As I write this, that server seems to be down.
However, a couple of weeks ago, I tried to fill out the "submit a
new list" form, at http://lists.cpan.org/submission.cgi, and am
not sure I understand it.  I want, if possible, to start a new
list that's *hosted* by lists.cpan.org, but the form seemed to
be for information about an already existing mailing list.


I want to request that a new mailing list be set up for the
discussion of the Physics::Unit and related modules.
The form had many fields that I left blank, for example:
"List posting address:".  I would like to request that
perl.org *host* the mailing list -- i.e. that the 
servers actually implement the list, as I see that many
other lists are.  This form seems to suggest that the
list has already been established on some other organization's
server, and I'm just supposed to enter the data about it.

Is there some other form that I need to fill out?  

If someone can email me (or post a reply) with any information,
I'd be very appreciative.  My email address is
dude@chrismaloney.com

Thanks!


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

Date: Wed, 26 Mar 2003 22:41:49 GMT
From: "manj dodda" <dmanjunath@yahoo.com>
Subject: array question
Message-Id: <N0qga.3535$mf7.157266194@newssvr14.news.prodigy.com>

I have a array like
@col1 ;
@col2 ;
@col3 ;
@col4 ;

How  can i make it as a list of array ?
something like
$column[0]  - should hold array col0.
$column[2] - should hold array col1.
and so on.

What should column be declared as ?
@column = () ;
or
%column ;

Thanks in advance.

-md




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

Date: 26 Mar 2003 23:47:29 GMT
From: Abigail <abigail@abigail.nl>
Subject: Re: array question
Message-Id: <slrnb84f0h.lam.abigail@alexandra.abigail.nl>

manj dodda (dmanjunath@yahoo.com) wrote on MMMCDXCIV September MCMXCIII
in <URL:news:N0qga.3535$mf7.157266194@newssvr14.news.prodigy.com>:
''  I have a array like
''  @col1 ;
''  @col2 ;
''  @col3 ;
''  @col4 ;

That's four arrays.

''  How  can i make it as a list of array ?
''  something like
''  $column[0]  - should hold array col0.
''  $column[2] - should hold array col1.
''  and so on.

That would be an array of arrays. Lists do not have names. One way
of doing so is:

    @column = (\@col1, \@col2, \@col3, \@col4);

This would "share" the elements of @col1, etc. If you want to copy the
elements, use:

    @column = ([@col1], [@col2], [@col3], [@col4]);


''  What should column be declared as ?
''  @column = () ;
''  or
''  %column ;

The latter is a hash.



See also 'man perlref', 'man perlreftut', 'man perllol', 'man perldsc'.



Abigail
-- 
perl -swleprint -- -_=Just\ another\ Perl\ Hacker


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

Date: Thu, 27 Mar 2003 08:20:44 -0600
From: Barry Kimelman <barryk2@SPAM-KILLER.mts.net>
Subject: Re: array question
Message-Id: <MPG.18ecc4b872d82dc098976d@news.mts.net>

[This followup was posted to comp.lang.perl.misc]

In article <N0qga.3535$mf7.157266194@newssvr14.news.prodigy.com>, manj 
dodda (dmanjunath@yahoo.com) says...
> I have a array like
> @col1 ;
> @col2 ;
> @col3 ;
> @col4 ;
> 
> How  can i make it as a list of array ?
> something like
> $column[0]  - should hold array col0.
> $column[2] - should hold array col1.
> and so on.
> 
> What should column be declared as ?
> @column = () ;
> or
> %column ;
> 
> Thanks in advance.
> 
> -md

Try the following code :

@column = ( \@col1 , \@col2 , \@col3 , \@col4 );

$array = $column[0]; # get reference to @col1
$value = $$array[0]; # get 1st element of @col1

-- 
---------

Barry Kimelman
Winnipeg, Manitoba, Canada
email : bkimelman@hotmail.com


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

Date: Wed, 26 Mar 2003 23:53:51 GMT
From: Bart Lateur <bart.lateur@pandora.be>
Subject: Re: Can't locate object method "new" via package "Net::FTP::A" at /usr/perl5/5.00503/sun4-solaris/IO/Socket.pm line 253.
Message-Id: <78f48v415rq9tpri2at1ts4ktcbiohvrbb@4ax.com>

Leo wrote:

> Could anyone can tell me what's the problem with this NET:FTP::A ?

I'd think that would be the Ascii mode (subclass) for Net::FTP.

-- 
	Bart.


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

Date: 26 Mar 2003 17:35:18 -0800
From: leo_lu@tce.com.tw (Leo)
Subject: Re: Can't locate object method "new" via package "Net::FTP::A" at /usr/perl5/5.00503/sun4-solaris/IO/Socket.pm line 253.
Message-Id: <5e7cdfd6.0303261735.254eb191@posting.google.com>

anno4000@lublin.zrz.tu-berlin.de (Anno Siegel) wrote in message news:<b5rsei$qpu$1@mamenchi.zrz.TU-Berlin.DE>...
> Leo <leo_lu@tce.com.tw> wrote in comp.lang.perl.misc:
> > Hi All,
> > 
> >  Could anyone can tell me what's the problem with this NET:FTP::A ?
> 
> Apparently the module is not loaded.
> 
> >  And what is the correct method to install Perl Module?
> 
> use CPAN:
> 
>     perl -MCPAN -e shell
> 
> Then type "install NET:FTP::A", for instance.
> 
> Anno

Thanks


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

Date: 27 Mar 2003 01:04:20 -0800
From: ajfayle@hotmail.com (Peter Van Mayer)
Subject: Can't Shanre variables between win32 threads in Perl
Message-Id: <4d601565.0303270104.56ee109@posting.google.com>

Hi,

I am trying to write a thread that shares a variable with its parent
but can't seen to get it to work. I am using windows 2000 and have
copied the examples out of the perlthrtut from perldoc.com but it just
won't work.
Is this an issue on windows or am I doing something stupid.

your help would be greatly appreciated.


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

Date: Thu, 27 Mar 2003 23:16:20 +1100
From: "Sisyphus" <kalinabears@hdc.com.au>
Subject: Re: Can't Shanre variables between win32 threads in Perl
Message-Id: <3e82ec7d$0$9259@echo-01.iinet.net.au>


"Peter Van Mayer" <ajfayle@hotmail.com> wrote in message
news:4d601565.0303270104.56ee109@posting.google.com...
> Hi,
>
> I am trying to write a thread that shares a variable with its parent
> but can't seen to get it to work. I am using windows 2000 and have
> copied the examples out of the perlthrtut from perldoc.com but it just
> won't work.
> Is this an issue on windows or am I doing something stupid.
>
> your help would be greatly appreciated.

Threads doesn't work with perl 5.6 on Windows. You need perl 5.8.
'perl -v' will tell you which version you have.
If you are using perl 5.8, and it's still not working, post one of the
sample scripts that you tried, together with the error messages it produced,
and the output of 'perl -V'.

(I tried a couple of the scripts from perlthrtut and they both worked fine
for me with ActiveState build 802.)

Cheers,
Rob




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

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.  

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


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