Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > footer in format

Reply
Thread Tools

footer in format

 
 
Alexander Jack
Guest
Posts: n/a
 
      08-10-2009
Dear all
how to print the footer using format in perl

use strict;
use warnings;
my ( $name, $x, $uid, $gid, $power, $boot, $path );
format STDOUT=
@>>>> @> @<<<< @##### @>>>> @<<<< @>>>>>>>>>>>>>>>>>>
$name, $x, $uid, $gid, $power, $boot, $path
..


format STDOUT_TOP =
-----------------------------------------
Name passwd UID GID POWER BOOT PATH
page :@<
$%
-----------------------------------------
..


format STDOUT_BOTTOM =
End of Page @<
$%
..


#$~ = "report";
#$~=STDOUT_BOTTOM;
#select(STDOUT);
open FH , "/etc/passwd" ;
while (( $name, $x, $uid, $gid, $power, $boot, $path )=split ":" ,
<FH>){

write ;
}
> This code is not printing the STDOUT_BOTTOM
> Please I want very basic definition , since I am a beginner
> I have tried a lot please help me out

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 5.11 How can I set up a footer format to be used with write()? PerlFAQ Server Perl Misc 0 03-07-2011 05:00 AM
FAQ 5.11 How can I set up a footer format to be used with write()? PerlFAQ Server Perl Misc 0 01-03-2011 05:00 AM
Any way to reorder how a datagrid is drawn (header/footer/items vs.header/items/footer)? Henrik ASP .Net Datagrid Control 1 07-06-2006 12:23 AM
NTFS quick format and normal format Guan Foo Wah MCSE 2 05-08-2004 11:35 PM
Date Format - best way of converting a string into a date format Brian Candy ASP .Net 2 02-18-2004 02:13 PM



Advertisments