snam has asked for the wisdom of the Perl Monks concerning the following question:
and I am getting an error like this.sub PRINT{ my $k, my $z, my $x, my $c; format head= user | processes | cpu-seconds | memory (k) --------+-----------+---------------+------------ . format result= @<<<<<<<|@>>>>>>>> |@>>>>>>>>>>>> |@>>>>>>>>>>> $k, $z, $x, $c . $- = "result"; foreach $k(@keys){ $z = $sum2->{$k}->{'process'}; $x = $sum2->{$k}->{'time'}; $c = $sum2->{$k}->{'mem'}; #$- = "result"; write(); } }#end of sub PRINT
can somebody help me?Undefined format "STDOUT" called at pigs line 64.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using format with "use strict;"
by Paladin (Vicar) on Feb 02, 2003 at 00:33 UTC | |
by snam (Novice) on Feb 02, 2003 at 02:35 UTC | |
|
Re: using format with "use strict;"
by artist (Parson) on Feb 02, 2003 at 01:07 UTC | |
|
Re: using format with "use strict;"
by Flame (Deacon) on Feb 02, 2003 at 02:22 UTC | |
by snam (Novice) on Feb 03, 2003 at 01:45 UTC |