Compare, diff to a file with Perl help needed

2008-10-20 Thread Z W
Hi I have 2 log files, each with a timestamp on the first 2 fields. However, when I do a awk '/ / {print $1,$2}' logs/x.log on a log file, it is complicated by the fact that I also get other non timestamp column, 2008-10-20 15:00:06,113 2008-10-20 15:00:06,113 2008-10-20 14:59:48,828 javax.naming

Re: using unix command issue...

2008-10-20 Thread John W. Krahn
Ariel Casas wrote: Hello all, Hello, Any time I run a unix command where I initiate a variable > use the variable as an arg in the unix command > pipe it to another unix command, I get an error. This is the error I get: --- ./test.1.pl Use of uninitialize

Re: using unix command issue...

2008-10-20 Thread Dave Tang
Try moving $utadm_1 up a few lines, before calling the subroutine. #!/usr/bin/perl -w $utadm_l = "/opt/SUNWut/sbin/utadm -l" ; check_LANon () ; sub check_LANon { $LANstat = system(" $utadm_l | grep On") ; print "$LANstat\n" ; } Dave On Tue, 21 Oct 2008 03:06:34 +1000, Ariel C

using unix command issue...

2008-10-20 Thread Ariel Casas
Hello all, Any time I run a unix command where I initiate a variable > use the variable as an arg in the unix command > pipe it to another unix command, I get an error. This is the error I get: --- ./test.1.pl Use of uninitialized value in concatenation (.) or

Re: Returning character from string

2008-10-20 Thread brian54321uk
brian54321uk wrote: brian54321uk wrote: Rob Dixon wrote: brian54321uk wrote: Hi, I'm stuck with what will probably turn out to be a simple solution, I've been scouring google for ages, and can't find anything close to what I'm looking for. Given that $fred = 10 $barney = abcdefghijklmn ho

Re: physical document Managment

2008-10-20 Thread Chas. Owens
On Mon, Oct 20, 2008 at 12:40, Pat Rice <[EMAIL PROTECTED]> wrote: > Hi all > I'm wondering if anyone had come accross a system in perl that can > handle physical documents that are scanned in to a system and OCR them > and put them into a database. I know its a bit much to ask. but I > don't want

Re: Returning character from string

2008-10-20 Thread brian54321uk
brian54321uk wrote: Rob Dixon wrote: brian54321uk wrote: Hi, I'm stuck with what will probably turn out to be a simple solution, I've been scouring google for ages, and can't find anything close to what I'm looking for. Given that $fred = 10 $barney = abcdefghijklmn how do I get $wilma = j

Re: Returning character from string

2008-10-20 Thread brian54321uk
brian54321uk wrote: Rob Dixon wrote: brian54321uk wrote: Hi, I'm stuck with what will probably turn out to be a simple solution, I've been scouring google for ages, and can't find anything close to what I'm looking for. Given that $fred = 10 $barney = abcdefghijklmn how do I get $wilma = j

physical document Managment

2008-10-20 Thread Pat Rice
Hi all I'm wondering if anyone had come accross a system in perl that can handle physical documents that are scanned in to a system and OCR them and put them into a database. I know its a bit much to ask. but I don't want to reinvent the wheel, if you know what I mean. implementing this in perl wo

How to code "threating" algo for Mail-Foler/Messages?

2008-10-20 Thread Michelle Konzack
Hello Gurus, Geeks and Nerds, I am coding a IMAP-Client and it works already nice. Currently I can show messages in a simpel list without threating. This is nice, if you are in limited Resources (e.g. GSM/GPRS) since you need a bare minimum of headers and save traffic. OK, now I want to a

Re: Returning character from string

2008-10-20 Thread brian54321uk
Rob Dixon wrote: brian54321uk wrote: Hi, I'm stuck with what will probably turn out to be a simple solution, I've been scouring google for ages, and can't find anything close to what I'm looking for. Given that $fred = 10 $barney = abcdefghijklmn how do I get $wilma = j my $wilma = substr

Re: Returning character from string

2008-10-20 Thread brian54321uk
John W. Krahn wrote: brian54321uk wrote: Hi, Hello, I'm stuck with what will probably turn out to be a simple solution, I've been scouring google for ages, and can't find anything close to what I'm looking for. Given that $fred = 10 $barney = abcdefghijklmn how do I get $wilma = j $ p

Re: Returning character from string

2008-10-20 Thread brian54321uk
Rob Dixon wrote: brian54321uk wrote: Hi, I'm stuck with what will probably turn out to be a simple solution, I've been scouring google for ages, and can't find anything close to what I'm looking for. Given that $fred = 10 $barney = abcdefghijklmn how do I get $wilma = j my $wilma = substr

Re: Returning character from string

2008-10-20 Thread John W. Krahn
brian54321uk wrote: Hi, Hello, I'm stuck with what will probably turn out to be a simple solution, I've been scouring google for ages, and can't find anything close to what I'm looking for. Given that $fred = 10 $barney = abcdefghijklmn how do I get $wilma = j $ perl -le' my $fred = 10

Re: Returning character from string

2008-10-20 Thread Rob Dixon
brian54321uk wrote: > > Hi, I'm stuck with what will probably turn out to be a simple solution, > I've been scouring google for ages, and can't find anything close to > what I'm looking for. > > Given that > > $fred = 10 > $barney = abcdefghijklmn > > how do I get $wilma = j my $wilma = subst

Returning character from string

2008-10-20 Thread brian54321uk
Hi, I'm stuck with what will probably turn out to be a simple solution, I've been scouring google for ages, and can't find anything close to what I'm looking for. Given that $fred = 10 $barney = abcdefghijklmn how do I get $wilma = j Thanks Brian -- To unsubscribe, e-mail: [EMAIL PROTECTE

"Open with" solution in perl

2008-10-20 Thread jis
Hello Perl Gurus, I have a an issue. I have developed an exe which will use another file during run time. I have named that another file as .jis file. I have configured jis file such that it will open with my exe( like we associate txt file with notepad). Now comes my problem. I click my pack.