concating files together
D at vid lacravate
lacravate at mongueurs.net
Fri May 23 10:36:35 CDT 2003
Hi ,
En ce jour du Fri, 23 May 2003 16:07:16 +0100,
Andrew Wilson <andrew at rivendale.net> parlait ainsi :
> > I am not namely from Belfast so i hope my answering to you won't be seen as some st(om|ep)ping in ...
> I don't mind, I doubt anyone else does.
Fine :)
> > Would probably do...
> It 'would do' but since you're going to print every line anyway then why
> would you use -n? The -n says to perl loop over these but don't print
> perl -p -e 'BEGIN{open STDOUT, ">/tmp/output"}' /var/log/maillog*
You're d..n' right ! :)) I was too eager to answer... The 'n' switch is completely useless if you use @ARGV...
Otherwise, as the question was how to do this in Perl, i was trying to give an answer in pure perl...
> While your version works, it seems a bit cluttered to me. There Is, of
That's very possible, i am really an very average programmer...
> course, More Than One Way To Do It ;-)
Yes, you're d..n' right again, :)) and especially for this kind of 'small' job...
--
D at vid lacravate
lacravate at mongueurs.net
tresorier at mongueurs.net
Assistez à la prochaine conférence Perl en France
23-25 juillet 2003 au CNAM (PARIS)
http://yapc.mongueurs.net
More information about the Belfast-pm
mailing list