PERLFUNC: format - declare a picture format with use by the write() function 
Author Message
 PERLFUNC: format - declare a picture format with use by the write() function

(This excerpt is from the perlfunc manpage, part of the standard set of
documentation included with every valid Perl distribution--like the one on
your own system.  See also http://www.*-*-*.com/
or http://www.*-*-*.com/
if your negligent system adminstrator has been remiss in his duties.)

NAME
    format - declare a picture format with use by the write() function

SYNOPSIS
    format

DESCRIPTION
    Declare a picture format for use by the `write' function. For
    example:

        format Something =

                  $str,     $%,    '$' . int($num)
        .

        $str = "widget";
        $num = $cost/$quantity;
        $~ = 'Something';
        write;

    See the perlform manpage for many details and examples.

--
: 1.  What is the possibility of this being added in the future?
In the near future, the probability is close to zero.  In the distant
future, I'll be dead, and posterity can do whatever they like...  :-) --lwall



Wed, 12 Dec 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. PERLFUNC: format - declare a picture format with use by the write() function

2. PERLFUNC: formline - internal function used for formats

3. Printing in format statments using e/g format

4. Using formats, way to avoid exact formatting???

5. PERLFUNC: write - print a picture record

6. PERLFUNC: write - print a picture record

7. Writing to file in perl using format

8. Has anyone used format/write?

9. keeping the text-format when using write

10. Question: using write to format strings in a $variable or @list

11. Using format and write to a variable?

 

 
Powered by phpBB® Forum Software