Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- PERL 4.0 Reference Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

     print(FILEHANDLE LIST)

     print(LIST)

     print FILEHANDLE LIST

     print LIST

     print   Prints  a  string  or  a  comma-separated  list   of
             strings.   Returns non-zero if successful.  FILEHAN-
             DLE may be a scalar variable name, in which case the
             variable  contains  the name of the filehandle, thus
             introducing one level  of  indirection.   (NOTE:  If
             FILEHANDLE  is  a  variable  and the next token is a
             term, it may be misinterpreted as an operator unless
             you  interpose  a  +  or put parens around the argu-
             ments.)  If FILEHANDLE is omitted, prints by default
             to  standard  output (or to the last selected output
             channel--see select()).  If LIST  is  also  omitted,
             prints  $_  to  STDOUT.   To  set the default output
             channel to  something  other  than  STDOUT  use  the
             select  operation.  Note that, because print takes a
             LIST, anything in the LIST is evaluated in an  array
             context,  and any subroutine that you call will have
             one or more of its expressions evaluated in an array
             context.   Also  be  careful not to follow the print
             keyword with a left parenthesis unless you want  the
             corresponding  right  parenthesis  to  terminate the
             arguments to the print--interpose a + or put  parens
             around all the arguments.

See Also: printf

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson