ActiveState homepage
docs.activestate.com
ActivePerl 5.32 Documentation
  • Get ActivePerl
      Release notes Windows installation Linux Installaton macOS Installation License
  • Get Started
      Windows Perl 5.32 docs
  • Contact Us

format - perldoc.perl.org
Home  > Language reference > Functions > format
Perl 5 version 32.0 documentation

format

Perl functions A-Z | Perl functions by category | The 'perlfunc' manpage
  • format

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

    1. format Something =
    2. Test: @<<<<<<<< @||||| @>>>>>
    3. $str, $%, '$' . int($num)
    4. .
    5. $str = "widget";
    6. $num = $cost/$quantity;
    7. $~ = 'Something';
    8. write;

    See perlform for many details and examples.

Documentation built with Hugo using the Material theme.
ActiveState Platform   Downloads   Community   Code Recipes  
© 2020 ActiveState Software Inc. All rights reserved. Trademarks. Privacy Policy.