Re: [Perl-unix-users] Default values for parameters

2001-08-20 Thread Tim Hammerquist
Andy Bastien wrote: > > There's a technique that I've been using for a while to set default > values for variables, along the lines of: > > my $foobar = (shift or 42); > > I am correct in thinking that the '(shift or 42)' part creates an > array slice with a single value, and that the assignmen

RE: [Perl-unix-users] Bandwidth meters...

2001-08-20 Thread Richard Chiswell
On Monday, 20th August at 4:07pm, Alex Moen wrote: > Does anyone know of a good, accurate bandwidth meter for dialup > or dsl customers? We have grepped the entire Internet and can only > find ones that are hosted somewhere else. I want one that I can > host on our server, so that the customer g

RE: [Perl-unix-users] Bandwidth meters...

2001-08-20 Thread Peter Eisengrein
MRTG! It can graph any snmp device. And it's perl (and C) and available on UNIX and Win platforms. You can find it at http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg.html -- check out some of the user pages to see what can be done with it. -Pete > -Original Message- > From: Alex

[Perl-unix-users] Bandwidth meters...

2001-08-20 Thread Alex Moen
Hey all... Looking for advice: Does anyone know of a good, accurate bandwidth meter for dialup or dsl customers? We have grepped the entire Internet and can only find ones that are hosted somewhere else. I want one that I can host on our server, so that the customer gets a good accurate bandw

[Perl-unix-users] Default values for parameters

2001-08-20 Thread Andy Bastien
There's a technique that I've been using for a while to set default values for variables, along the lines of: my $foobar = (shift or 42); I am correct in thinking that the '(shift or 42)' part creates an array slice with a single value, and that the assignment to $foobar converts that to a scal

Re: [Perl-unix-users] checking a file for an existing string

2001-08-20 Thread Jenda Krynicky
> Anyhow, I am trying to open a static file with names and email > addresses in it and to make sure there are no duplicate email > addresses before adding the email address to the list. > > Could someone explain to me in kindergarten terms how and why > I do each step to make this happen? > >