jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
When I do a more on file o3 I see#! /usr/bin/perl -lw use strict ; use File::Cat; open OUT,">o3" ; cat ('o1', *OUT ) or die "Can't cat o1: $!"; cat ('o2', *OUT ) or die "Can't cat o2: $!"; close OUT ;
When I remove the -l option on the first line I getthis line is from o1 this line is from o2
So the empty lines are introduced by this option, and is not from the files.this line is from o1 this line is from o2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem with File::Cat
by lidden (Curate) on Apr 24, 2007 at 12:14 UTC | |
by tbone1 (Monsignor) on Apr 24, 2007 at 12:22 UTC | |
by jeanluca (Deacon) on Apr 24, 2007 at 13:12 UTC | |
by jwkrahn (Abbot) on Apr 24, 2007 at 17:43 UTC | |
by jeanluca (Deacon) on Apr 24, 2007 at 17:52 UTC |