Re: 'rmm' (or 'trash') script

2003-10-25 Thread Kevin Pfeiffer
Hi David, In article <[EMAIL PROTECTED]>, David wrote: > Kevin Pfeiffer wrote: > >> Hi all, >> >> I just took another look at an exercise I wrote a couple months ago and >> fleshed it out a bit. It is a commandline "trashcan" program which I >> actually use. Instead of typing 'rm' I almost alwa

Custom rmodule with use strict;

2003-10-25 Thread Dan Muey
Howdy all!. I'm using a simpewlmmodule to get vars an dfunctions into one place. It works dandy except I can't have use strict in the module. I think it has todo with not doing my or our with teh @EXPORT and friends: So what am I missing, what do I need to do to be able to add use stirct; to m

SQL Syntax quickie

2003-10-25 Thread dan
Hi, I've looked around to not much avail, what I'm looking for is a SELECT query that selects the last record in a database. Each table has the primary field "id", to which auto increments on each input. I don't want to have to load the entire db, cycle through it until I find the last one, the pr

Re: More what is time?

2003-10-25 Thread dan
try Time::Duration Dan <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I know about localtime(time); But I was wondering if there was a formula > out there like 1066442632/60/60/24 that will say today is say 2003 10 17. > > thanks > > > On Oct 17, [EMAIL PROTECTED] said: > > > >>> [E

Re: help with Very Small Perl?

2003-10-25 Thread Jakob Lell
On Wed, 22 Oct 2003 16:24:26 -0600, Chris McMahon wrote: > > > Hello... > I am booting a FreeBSD system from the network via PXE. > On that FreeBSD system is Perl 5.005. > I want to use the IO::Socket::INET module in a script on that system. (But > I'd settle for Socket.pm) > The kicker i

Re: Custom rmodule with use strict;

2003-10-25 Thread Bob X
"Dan Muey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Howdy all!. > > I'm using a simpewlmmodule to get vars an dfunctions into one place. > > It works dandy except I can't have use strict in the module. > > I think it has todo with not doing my or our with teh @EXPORT and frien

Re: Parsing pipe delimited file

2003-10-25 Thread David Storrs
On Wed, Oct 22, 2003 at 07:22:24PM +0200, Kevin Pfeiffer wrote: > In article <[EMAIL PROTECTED]>, Charles K. Clarkson > wrote: > > > Kevin Pfeiffer <[EMAIL PROTECTED]> wrote: > > > > : Where I am stuck is on the question: > > : > > : Given an @array such as > > : ("Title of Song", "Artist", "Tit

Adding Double Quotes to variable

2003-10-25 Thread Anthony J Segelhorst
I currently have a variable called $servicename. Example: SNMP Service = $servicename How can add double qoutes around "SNMP Service" to the variable $servicename? I have tried $doubleqoutes_servicename = "$servicename"; This does not work though. Any ideas? Anthony J Segelhorst Enterprise

Re: Adding Double Quotes to variable

2003-10-25 Thread Daniel Staal
--On Saturday, October 25, 2003 20:48 -0400 Anthony J Segelhorst <[EMAIL PROTECTED]> wrote: How can add double qoutes around "SNMP Service" to the variable $servicename? I have tried $doubleqoutes_servicename = "$servicename"; This does not work though. Any ideas? Either of the following shoul

Re: SQL Syntax quickie

2003-10-25 Thread Wiggins d'Anconia
dan wrote: Hi, I've looked around to not much avail, what I'm looking for is a SELECT query that selects the last record in a database. Each table has the primary field "id", to which auto increments on each input. I don't want to have to load the entire db, cycle through it until I find the last

Re: Parsing pipe delimited file

2003-10-25 Thread Wiggins d'Anconia
David Storrs wrote: On Wed, Oct 22, 2003 at 07:22:24PM +0200, Kevin Pfeiffer wrote: In article <[EMAIL PROTECTED]>, Charles K. Clarkson wrote: Kevin Pfeiffer <[EMAIL PROTECTED]> wrote: : Where I am stuck is on the question: : : Given an @array such as : ("Title of Song", "Artist", "Title", "Ano

Re: Adding Double Quotes to variable

2003-10-25 Thread Wiggins d'Anconia
Daniel Staal wrote: --On Saturday, October 25, 2003 20:48 -0400 Anthony J Segelhorst <[EMAIL PROTECTED]> wrote: How can add double qoutes around "SNMP Service" to the variable $servicename? I have tried $doubleqoutes_servicename = "$servicename"; This does not work though. Any ideas? Eithe

how to pass multi array as args

2003-10-25 Thread perl
Can someone show me how to pass multiple arrays argument? ie - ... mysub(@a, @b, @c); ... sub mysub { my @a = ? #arg1 an array $_[0] is not working my @b = ? arg2 another array $_[1] is not working my @c = ? arg3 another array $_[2] is not working } thanks

RE: how to pass multi array as args

2003-10-25 Thread Charles K. Clarkson
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] wrote: : : Can someone show me how to pass multiple arrays argument? : : ie - Read perlsub. You can use references. : : ... : mysub(@a, @b, @c); mysub( [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] ); : ... : : sub mysub : { my @

Re: SQL Syntax quickie

2003-10-25 Thread Tore Aursand
On Sat, 25 Oct 2003 10:43:51 +0100, dan wrote: > Basically what happens is the program enters information using INSERT, and > then it needs to re-read the data it's just sent to verify it, and get the > id number that auto_increment assigned it. You don't say anything about what RDBMS you're using

RE : SQL Syntax quickie

2003-10-25 Thread SIMON Cedric
Another solution : For your query, try "SELECT MAX(id) FROM table" That works with mysql. -Message d'origine- De : dan [mailto:[EMAIL PROTECTED] Envoyé : samedi 25 octobre 2003 11:44 À : [EMAIL PROTECTED] Objet : SQL Syntax quickie Hi, I've looked around to not much avail, what I'm l