Skumar2015 has asked for the wisdom of the Perl Monks concerning the following question:
when i run this file i will get some '12345'as an output. Now I need to copy the log file output into existing excel sheet day by day. please help me.#!/usr/local/bin/perl use strict; use warnings; my $filename = 'C:Desktop\data.log'; open(my $file1, '<:encoding(UTF-8)', $filename) or die "Could not open file '$filename' $!"; while (my $row = <$file1>) { chomp $row; print "$row\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: when i run a log file,will get some output in numbers say'12345' ,i would like to copy it in excel file?
by ww (Archbishop) on Jul 31, 2015 at 22:33 UTC | |
|
Re: when i run a log file,will get some output in numbers say'12345' ,i would like to copy it in excel file?
by locked_user sundialsvc4 (Abbot) on Jul 31, 2015 at 23:33 UTC |