Re: Complicated sort

2006-11-09 Thread Arnaldo Guzman
On Fri, 2006-11-10 at 00:59 -0500, Arnaldo Guzman wrote: > On Thu, 2006-11-09 at 08:47 -0500, Zielfelder, Robert wrote: > > Greetings: > > > > > > > > I have a sorting problem I need to solve but I'm not sure how to go > > about it. I have an appl

Re: Complicated sort

2006-11-09 Thread Arnaldo Guzman
On Thu, 2006-11-09 at 08:47 -0500, Zielfelder, Robert wrote: > Greetings: > > > > I have a sorting problem I need to solve but I'm not sure how to go > about it. I have an application that dumps a file with a format like > this: > > > > 19JAN2006.1503 > > 03JAN2006.1647 > > 19DEC2004.053

Re: date and file comparison

2006-11-03 Thread Arnaldo Guzman
On Fri, 2006-11-03 at 08:08 -0600, Tim Wolak wrote: > Morning all, > > I need to compare the current date with that of a file, if the file is > older than the current date remove it and replace it with a new one from > new data. Below I have the code set for getting the date but can't come > up

Re: All of "perldoc" to text

2006-11-02 Thread Arnaldo Guzman
On Thu, 2006-11-02 at 11:02 -0700, Bryan R Harris wrote: > > On 11/1/06, Bryan R Harris <[EMAIL PROTECTED]> wrote: > > > >> "perldoc" to me has always been this kind of magicians hat where you > >> wave a wand and chant some special words and magically out pops > >> some thing you never read or he

Re: [SPAM DETECT] split and grouping in regexp

2006-10-30 Thread Arnaldo Guzman
On Mon, 2006-10-30 at 02:34 +0100, xavier mas wrote: > A Dimarts 31 Octubre 2006 02:22, Daniel Kasak va escriure: > > my ( $, $mm, $dd ) = split /(-|\/)/, $mmdd; > > split function can't accept an expression on its syntax, only a character as > separator field. > -- > Xavier Mas To Xavi

Re: split and grouping in regexp

2006-10-30 Thread Arnaldo Guzman
On Tue, 2006-10-31 at 12:22 +1100, Daniel Kasak wrote: > I'm trying to split a date where the values can be separated by a dash > '-' or a slash '/', eg: > 2006-10-31 or 2006/10/31 > > I'm using: > my ( $, $mm, $dd ) = split /(-|\/)/, $mmdd; > but it doesn't work. > > If I just do: > my

Re: Changing colour, font and weight of text in a shell

2006-10-27 Thread Arnaldo Guzman
On Thu, 2006-10-26 at 21:39 +, Allister Gearon wrote: > Hello, > is there a simple way to do this? I have had no luck in my searches so far. > Perl version 5.8.8 > TIA > Al > -- > > Public Key to be found at www.keyserver.net. > Search for [EMAIL PROTECTED] For colored output see the Color:

Re: Need to pull matched string plus a few additional bytes

2006-10-27 Thread Arnaldo Guzman
On Fri, 2006-10-27 at 09:36 -0400, Phil Miller wrote: > I am working on my very first program and have run into a bit of a > roadblock. I am trying to print a report of users who show up in an IIS > Log file. The good news is that the format of the userid is > WINDOWSDOMAIN\USERID. The bad news

Re: How to parse UNIX commands ...

2006-10-26 Thread Arnaldo Guzman
On Fri, 2006-10-27 at 17:30 +1300, [EMAIL PROTECTED] wrote: > Hi all, > > How do I parse or evaluate the output of UNIX commands? > > For example, in UNIX scripts, I can run filesystem=`df -k | awk -F"" ' { print > $6 }'` to check for the mount points. > > How do I achieve the same in Perl? That

Re: assign STDIN to a hash ref

2006-10-25 Thread Arnaldo Guzman
Arnaldo Guzman wrote: Brian Volk wrote: Hello~ I'm trying to assign STDIN to a hash ref... I think? :-) I have a working program (w/o references) but I think it will easily get out of control if I don't learn to use references. Here is what I would like to do: User selects vendo

Re: assign STDIN to a hash ref

2006-10-25 Thread Arnaldo Guzman
Brian Volk wrote: Hello~ I'm trying to assign STDIN to a hash ref... I think? :-) I have a working program (w/o references) but I think it will easily get out of control if I don't learn to use references. Here is what I would like to do: User selects vendor and then selects the type of ima