Re: How do I get simple random numbers?

2003-02-01 Thread Dr. Poo
On Saturday 01 February 2003 03:18 pm, R. Joseph Newton wrote: > Jamie Risk wrote: > > I'm thinking I could open up "/dev/urandom/" but that hardly seems > > portable. > > Hi Jamie, > > Remember the principle of KISS. > Ahem..excuse me; What is the principle of KISS? Thanks. :) Also, for the rand

Re: Archive::Tar problems....

2002-12-14 Thread Dr. Poo
s Tip-Top... Sorry for the false alarm. (hopefully this isn't a double false alarm.. but i'll be sure to let everyone know!! hehe) Thanks for listening! -Chris On Saturday 14 December 2002 08:01 pm, Dr. Poo wrote: > My name is Chris, HI! > > I'm work

Archive::Tar problems....

2002-12-14 Thread Dr. Poo
My name is Chris, HI! I'm working on a backup application... and i'm using your Archive::Tar perl module (version .22). My question to you is, how can i "flush" the in memory archive after it has reached a certain condition...say like a certain size. My problem is this.

Re: What is \000?

2002-12-11 Thread Dr. Poo
Cool... Thanks a bundle -Chris On Wednesday 11 December 2002 12:45 pm, Kevin Meltzer wrote: > \000 is a null character. > > Cheers, > Kevin > > On Wed, Dec 11, 2002 at 12:38:49PM -0600, Dr. Poo ([EMAIL PROTECTED]) said something similar to: > > What/when/where/h

What is \000?

2002-12-11 Thread Dr. Poo
What/when/where/how might one come across the ?character? '\000' -> that's backslash followed by three zero's. I ask because i've just come acress a regex for parsing valid directories and it has that as an m/...[^\000].../ (as in, we don't want to find this...) Thanks -

Re: Net::FTP How to find the rate of transfer

2002-12-09 Thread Dr. Poo
hehe, write one... and let me know when you're done! hehe Actually... if you understand OOP code, that's not a bad idea at all.help out the community! (yea i would, but i'm very busy :-) Good luck! -Chris On Monday 09 December 2002 06:19 am, sharan wrote: > Hel

Re: Using ssh for uptime?

2002-12-07 Thread Dr. Poo
HAHAHAHaHa always happens! -Chris On Saturday 07 December 2002 11:23 am, chad kellerman wrote: > Dammit, got the split wrong. > > try this: > my ( $time, $uptime ) = ( split / /, $out[0] )[0,1]; > > my bad.. > > > > chad > > On Sat, 2002-12-07 at 12:11, Mark Weisman wrote: > > I've

Re: Difference between $count++ and ++$count

2002-12-06 Thread Dr. Poo
HAHAHAHAHAHA! -Chris On Friday 06 December 2002 03:51 pm, [EMAIL PROTECTED] wrote: > He forgot to mention the: > > use Advil; > > $pills = new Advil(2); > unless($pills->take(orally)) { > sleep 40; > } > > http://danconia.org > > >

Re: Difference between $count++ and ++$count

2002-12-06 Thread Dr. Poo
Yes sir there is! And it's quite a goober if you ask me, but very useful. I'll show the difference by example. my $SOME_CONSTANT = 2; # NO MAGIC NUMBERS! (hehe) my $pre_increment = 0; my $post_increment = 0; my $pre_result = ++$pre_increment + $SOME_CONSTANT; my $post_result = $post_i

Re: Difference between $count++ and ++$count

2002-12-06 Thread Dr. Poo
On Friday 06 December 2002 11:09 am, simran wrote: > Yup... > > In program 1 you will get $i to be 1 and then $count will be set to 2 > In program 2 you will get $count to be set to 2 and then assigned to $i > so now $i will also be 2. > > Its just a prcedence thing... > > Program 1 > --

Re: Errors during FTP

2002-11-26 Thread Dr. Poo
Not to sound bashing, but i have to agree with Ramprasad.. Think about what you're posting. Nobody like wild-goose chases. Try checking $@ for an error along with $! if something is going on. $! $OS_ERROR $ERRNO If used in a numeric context, yields the current value of the errno variable, id

Re: Fwd: Re: Declare $main::scalar in begin with 'use strict'

2002-11-26 Thread Dr. Poo
Thanks Paul for the perl5005delta inforomation. That's some good information! Chris On Friday 22 November 2002 06:13 am, Paul Johnson wrote: > Dr. Poo said: > > This worked perfectly. Why the hell havn't i ever seen INIT before? > > You haven't read perl50

Fwd: Re: Declare $main::scalar in begin with 'use strict'

2002-11-21 Thread Dr. Poo
-- Forwarded Message -- Subject: Re: Declare $main::scalar in begin with 'use strict' Date: Thu, 21 Nov 2002 16:51:43 -0600 From: Dr. Poo <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Dude, you rule. That's all i have to say besides, yah, you rule. This work

Declare $main::scalar in begin with 'use strict'

2002-11-19 Thread Dr. Poo
I'm trying to declare a variable $log that is a reference to an array that will contain the small amounts of data that need to be logged throughout a backup script i'm working on. I'd like to declare this scalar reference in the BEGIN function, but i can't use it outside of the BEGIN function if

A chroot problem

2002-11-02 Thread Dr. Poo
Hi again! I'm narrowing down my initial problem, and i believe i've found the error to be occuring due to the fact that before the Net::FTP calls are made, i have made a call to chroot! Run the test script below (please please please please) #! /usr/bin/perl use strict; use warnings; use Net

Re: Any ideas [on how to redirect STDOUT to an array]?

2002-11-01 Thread Dr. Poo
Sorry for the ambiguity. What i am trying to do is set up a very rudimentary logging system. I want to log everything that is directed to STDOUT. And the way i'd like to try to do this is have an array declared that will "read" STDOUT and store the contents to the array rather than print them t

Any ideas?

2002-11-01 Thread Dr. Poo
How might i go about pointing STDOUT to store each line in an array? Could i 'tie' standard out to an array? (i don't know how to use tie) Thanks -Chris -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Run a perl script within perl....

2002-11-01 Thread Dr. Poo
My name is Chris, Hi! I'm still trying to get Net::FTP to work... I posted a question about a few days ago, and i've got no response... My original question is at the very bottom of this email... But my new question is here. I'm running Redhat 7, perl 5.6, Net::FTP 2.65. When i try to connect

Net::FTP Help!

2002-10-29 Thread Dr. Poo
My name is Chris, Hi! I'm creating a backup program for my company and i'm interested in the Net::FTP module from CPAN by Graham Barr <[EMAIL PROTECTED]>. My problem is that when i try to connect to an ftp server, it fails with this error message in $@ [ Net::FTP: Bad protocol 'tcp' ] Now...