Re: map HoAoA

2010-10-18 Thread brian d foy
In article <20101018005850.ga2...@playground.mcclains.net>, Mike McClain wrote: > This threw me for a loop for a while since there is no comma in > map { @{ $HoAoA{$_} } [ 0..$#{ $HoAoA{$_} } ]->[1] } keys %HoAoA; > but I figured out that the range operator '..' returns a list and > eventua

Perl and socket communication to interface with O/S commands

2010-10-18 Thread WayneB
Greetings, I setup a menu to connect form an operator's Unix account to my VMS Server. A menu is displayed, and as long as my menu options do not require a response form the operator the commands and the information returned to the operator work fine. Where I have an issue is when I am trying t

Re: MySQL database entry delta report

2010-10-18 Thread Dr.Ruud
On 2010-10-18 05:42, Jason Feng wrote: I am using Perl and MySQL to maintain a database of mobile network configuration about 30 tables and millions of rows. Every day, I’ll be importing new configuration data to the database. I’d like to create a delta report on which row and which column are

Re: split log file

2010-10-18 Thread Shlomi Fish
Hi Agnello, On Monday 18 October 2010 15:01:56 Agnello George wrote: > I know the problem is solved but Could the script be done like this ?? > OK, I'll answer it. > #!/usr/bin/perl > > use strict; > use warnings; > > > while (my $line = ) { Why are you using *DATA and __DATA__ for the data

Re: split log file

2010-10-18 Thread Agnello George
On Sat, Oct 16, 2010 at 2:11 PM, Shlomi Fish wrote: > On Thursday 14 October 2010 16:54:32 yo RO wrote: > > Hello I need to split a log file per days > > I have a file in txt format and I want to create a file with all data > > from one day in one file > > I will give example > > > > I have this

Re: split log file

2010-10-18 Thread Agnello George
I know the problem is solved but Could the script be done like this ?? #!/usr/bin/perl use strict; use warnings; while (my $line = ) { chomp($line); my ($out_file) = $line =~ m/^(\d+_\d+_\d+);/; open (WRT,">>$out_file.log" ) or die " cannot opne file: $!";

Re: split log file

2010-10-18 Thread yo RO
On Oct 16, 10:41 am, shlo...@iglu.org.il (Shlomi Fish) wrote: > On Thursday 14 October 2010 16:54:32 yo RO wrote: > > > > > Hello I need to split a log file per days > > I have a file in txt format and I want to create a file with all data > > from one day in one file > > I will give example > > >