in reply to Supressing zero values in formatted reports
From the perfunc page of format:
fengor
so maybe u can do something like:format Something = Test: @<<<<<<<< @||||| @>>>>> $str, $%, '$' . int($num) . $str = "widget"; $num = $cost/$quantity; $~ = 'Something'; write;
hthformat top = User Emails Size (Kb) ============== ======== =========== . format DISPLAY = @<<<<<<<<<<<<< @#### @#####.## $temp[$i], $temp[$i+1], $temp[$i+2] . if ($output[$i]) {$temp[$i]=$output[$i]} else {$temp[$i]==' '} if ($output[$i+1]) {$temp[$i+1]=$output[$i+1]} else {$temp[$i+1]==' '} if ($output[$i+2]) {$temp[$i+2]=$output[$i+2]/1024} else {$temp[$i+2]==' '}
fengor
--
"WHAT CAN THE HARVEST HOPE FOR IF NOT THE CARE OF THE REAPER MAN"
-- Terry Pratchett, "Reaper Man"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Supressing zero values in formatted reports
by ryan (Pilgrim) on Dec 28, 2001 at 14:57 UTC | |
by Fengor (Pilgrim) on Dec 28, 2001 at 15:14 UTC | |
by ryan (Pilgrim) on Dec 28, 2001 at 15:22 UTC | |
by Fengor (Pilgrim) on Dec 28, 2001 at 15:32 UTC | |
by ryan (Pilgrim) on Dec 28, 2001 at 15:40 UTC |
In Section
Seekers of Perl Wisdom