Re: Regarding perl learning

2015-07-01 Thread Mukesh Baranwal
.perl.org/> • Online Books <http://www.perl.org/books/library.html> • Real World Books <http://learn.perl.org/books/> • Repository <http://metacpan.org/> • Blog <http://blogs.perl.org/> • Regional groups <http://www.pm.org/> • Videos <http://perltv.org/> *Muk

Re: want to write to file in different format

2014-07-07 Thread Mukesh Baranwal
Very nice John!!! I couldn't think it. *Mukesh Kumar* *Member of Technical Staff* *Cadence Design Systems (I) Pvt. Ltd.* *Mob:- +91-8527749333* On 7 July 2014 15:26, John Delacour wrote: > > On 7 Jul 2014, at 09:18, Sunita Pradhan > wrote: > > > I

Re: want to write to file in different format

2014-07-07 Thread Mukesh Baranwal
uot;>test2.txt") or die "Can't open the file 3 $!\n"; while () { chomp; if($_ =~ /(\d+)\s+(\d+)/ ){ printf FILE1 "$1 "; printf FILE2 "$2 "; } } printf FILE1 "\n"; printf FILE2 "\n"; close(FILE); close(FILE1); close(FILE2

log4perl rotate logs with date as suffix

2012-04-03 Thread Mukesh
Hi I'm trying to rotate my log files and also i have another requirement of having date suffix for the rotated files. For this I've used the following configuration: log4perl.appender.LOGFILE.layout=PatternLayout log4perl.appender.LOGFILE.layout.ConversionPattern = %d %c %m%n log4perl.