group

2003-12-25 Thread dave
I've made a group called everyone. It has its own Sub-directory, "/home/everyone". I have 3 users in the group. Do I have to do anything else so everyone can share that Sub-directory? Mandrake 9.2. Thanks in advance. -- Dave Pomeroy K7DNP South Eastern Washington -- To unsubscribe, e-mail

wrong group

2003-12-25 Thread dave
Sorry for my last post I thought I'd sent that to Linux-newbie. -- Dave Pomeroy K7DNP South Eastern Washington -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Perl Help: Array Manipulation

2003-12-25 Thread u235sentinel
I'm a newbie to perl also. Been workign with it for a whole 2 weeks now. Actually.. make that 3 ::grinz:: Warning.. lengthy email below.. I beg forgiveness in advance :-) Ok. Here is what I did. #!/usr/bin/perl @array1[0..5] = 1; @total[0] = 0; for($i=0; $i<4; $i++) { if($i == 0) {

Re: Perl Help: Array Manipulation

2003-12-25 Thread Randy W. Sims
On 12/25/2003 12:59 AM, Duong Nguyen wrote: Hello everyone, Sorry for the spam, I am new to Perl and am having a hard time manipulating arrays. Below is the sample code that I am working on: @array1[0..5] = 1; @total[0] = 0; for($i=0; $i<4; $i++) { if($i == 0) { @total[$i] =

Re: Perl Help: Array Manipulation

2003-12-25 Thread Duong Nguyen
Thanks for the response. I discovered that it was my @array1[0..5] =1; initialization. So I manually allocated values to the array to see if it would work, much to my surprise, the correct "total" was being printed. Here's what I did: change @array1[0..5] to @array1[0] = 1;

Re: Perl Help: Array Manipulation

2003-12-25 Thread Randy W. Sims
On 12/25/2003 2:51 AM, Duong Nguyen wrote: From: Randy W. Sims > On 12/25/2003 12:59 AM, Duong Nguyen wrote: > Hello everyone, > > Sorry for the spam, I am new to Perl and am having a hard time manipulating arrays. Below is the sample code that I am working on: > > @array1[0..5]

RE: Perl Help: Array Manipulation

2003-12-25 Thread Charles K. Clarkson
Duong Nguyen <[EMAIL PROTECTED]> wrote: : : Thanks for the response. I discovered that it was my : @array1[0..5] =1; initialization. : So I manually allocated values to the array to see if it : would work, much to my surprise, the correct "total" was : being printed. Here's what I did: : : c

RE: Perl Help: Array Manipulation

2003-12-25 Thread Charles K. Clarkson
u235sentinel <[EMAIL PROTECTED]> wrote: [snipped valiant attempt] : : So now you see on the left the sum of each container in the array. : : Ok.. I await the flogging. Someone is bound to have done a better job : explaining this. At least I can blame it on being up after : midnight ;-)

Re: Perl Help: Array Manipulation

2003-12-25 Thread John W. Krahn
Duong Nguyen wrote: > > Hello everyone, Hello, > Sorry for the spam, Why do you think that this is spam? > I am new to Perl and am having a hard time manipulating > arrays. Below is the sample code that I am working on: You should have warnings and strictures enabled while you are developing

compile to CGI

2003-12-25 Thread Stijn DM
Hi, I installed a script called "megauploader" successfully and did some layout work in the php documents to fit it to my own needs. Now I also would like to change the layout in the progress bar window. The problem is that this is a CGI document and I am somewhat inexperienced in Perl. Each tim

Re: How to send O/P to file?

2003-12-25 Thread Tushar Gokhale
Thanks a lot for all of you for helping and sorry for creating confusion by not including code. I have ssh connection and I'm sending commands on CLI. I just managed to fix the problem. open ( OUTPUT , ">single.log" ) || genError ( 0, "Unable to open log file"); select ( OUTPUT ); This solved my

Re: compile to CGI

2003-12-25 Thread Owen Cook
On Thu, 25 Dec 2003, Stijn DM wrote: > I installed a script called "megauploader" successfully and did some layout > work in the php documents > to fit it to my own needs. > > Now I also would like to change the layout in the progress bar window. The > problem > is that this is a CGI document an

Re: How to extract the full URL from a relative link using WWW:: Mecha nize

2003-12-25 Thread Rob Dixon
Rajesh Dorairajan wrote: > > I am using WWW::Mechanize to create a configuration file from a website and > my script needs to go through a web-page and copy a specific links into a > configuration file. I am using $m->links method that returns the list of > links from a page. However, I am not able

anon ref to scalar?

2003-12-25 Thread mcdavis941
I'm working on a clone method for an object (which makes a deep copy of the data structure and all other data structures 'contained' by it). I'm trying to create a new reference that refers to the same thing an existing reference points to, but is actually a separate reference, so that you get

Re: anon ref to scalar?

2003-12-25 Thread James Edward Gray II
On Dec 25, 2003, at 7:02 AM, [EMAIL PROTECTED] wrote: I'm working on a clone method for an object (which makes a deep copy of the data structure and all other data structures 'contained' by it). The standard module Storable will do a deep copy for you with one subroutine call. Might want to ch

Re: anon ref to scalar?

2003-12-25 Thread mcdavis941
James Edward Gray II <[EMAIL PROTECTED]> wrote: >I believe you just want: > >$new = $orig; > >You're trying to copy the reference and = generally means copy. > >> print "orig:$orig, new:$new\n"; True, but ... (1) the requirement for a deep copy is that you can modify anything in the origina

Re: anon ref to scalar?

2003-12-25 Thread drieux
On Dec 25, 2003, at 5:02 AM, [EMAIL PROTECTED] wrote: Here's the code which I expected to work, but doesn't. I'm expecting \$$orig to result in a new reference, but instead it's reusing the original reference that I started with. So: $s = "some string"; $orig = \$s; $new = \$$orig;

Re: Perl Help: Array Manipulation

2003-12-25 Thread u235sentinel
But wouldn't the original initilization also work? @array1[0..5] = 1; This seemed to populate the array just fine. Randy W. Sims wrote: On 12/25/2003 2:51 AM, Duong Nguyen wrote: From: Randy W. Sims > On 12/25/2003 12:59 AM, Duong Nguyen wrote: > Hello everyone, > > Sorry for the

Re: generating GIFs

2003-12-25 Thread Andrew Gaffney
zentara wrote: On Tue, 23 Dec 2003 09:22:01 -0500, zentara <[EMAIL PROTECTED]> wrote: I havn't tried it personnally yet, but I think you should be able to avoid writing that temporary png file. If you are using perl5.8 you could write to a variable, and then just have Image::Magick read from that

Re: anon ref to scalar?

2003-12-25 Thread Randal L. Schwartz
> "mcdavis941" == mcdavis941 <[EMAIL PROTECTED]> writes: mcdavis941> I'm working on a clone method for an object (which makes a deep copy of the data structure and all other data structures 'contained' by it). I'm trying to create a new reference that refers to the same thing an existing r

Re: Perl Help: Array Manipulation

2003-12-25 Thread R. Joseph Newton
u235sentinel wrote: > I'm a newbie to perl also. Been workign with it for a whole 2 weeks > now. Actually.. make that 3 ::grinz:: > > Warning.. lengthy email below.. I beg forgiveness in advance :-) Length isn't a problem. There are some problems here, though, because you are not addressing th

Re: Perl Help: Array Manipulation

2003-12-25 Thread u235sentinel
Understood. I guess I was trying to show him ( the senec route) that basically no running total was being compiled. Also that wasn't the total. I guess it was too late at night for a simple response from me :-) Charles K. Clarkson wrote: u235sentinel <[EMAIL PROTECTED]> wrote: [snippe

Re: compile to CGI

2003-12-25 Thread R. Joseph Newton
Stijn DM wrote: > Hi, > > I installed a script called "megauploader" successfully and did some layout > work in the php documents > to fit it to my own needs. > > Now I also would like to change the layout in the progress bar window. The > problem > is that this is a CGI document and I am somewhat

Re: Perl Help: Array Manipulation

2003-12-25 Thread Randy W. Sims
[Please respond to the mailing-list so that others can contribute and learn from the discussion. Thanks.] On 12/25/2003 10:31 AM, Duong Nguyen wrote: Hello, Thanks for your reply. I think I am a bit confused between using array slices and a particular element of an array. The "print" function

Re: Perl Help: Array Manipulation

2003-12-25 Thread Randy W. Sims
On 12/25/2003 12:18 PM, u235sentinel wrote: But wouldn't the original initilization also work? @array1[0..5] = 1; No. Think of this in terms of parallel assignment, ignoring for the moment that we are talking of arrays, the above is equivalent to: ($e0, $e1, $e2, $e3, $e4, $e5) = 1; which is e

Re: Perl Help: Array Manipulation

2003-12-25 Thread u235sentinel
Ahhh.. Ok. I see the mistake. I've purchased Oreilly's "Learning Perl" 3rd Edition and have been steadily plugging through it. There is an example on page 45 which shows another way to populate an array. Here is one such example they give. @numbers = 1..1e5; So basically if you didn't want