From: Bruce W. <br...@mi...> - 2002-04-05 05:58:16
|
> I too have done time related to print_log's silently dropping array > arguments. It seems that we could add a join to the top of the > print_log subroutine that would not impair existing functionality/usage, > but would accept an array of input and log it. Something like: > > my(@data)=@_; > my $data=join($OFS,@data); > > As a bonus, this would more closely model the usage of the native perl > print function. > > Any objections? Good idea. Normally, I'd be a little reticent, since we might want eventually to add other parms to a function. But I can not think of any we might want to do with print_log, so it seems safe. This should do it (perl autotmatically adds spaces when a list used within ""): my $data = "@_"; Bruce |