Help for this page

Select Code to Download


  1. or download this
    use constant FOO => 42;
    
  2. or download this
    sub FOO { 42 }
    
  3. or download this
    use POSIX ();
    
  4. or download this
    $ perl -mPOSIX -e '$a = POSIX::O_RDWR; print "$a\n"'
    POSIX::O_RDWR
    $ perl -mPOSIX -e '$a = &POSIX::O_RDWR; print "$a\n"'
    2
    
  5. or download this
    use POSIX qw(O_RDWR);
    
  6. or download this
    $ perl -mPOSIX=O_RDWR -e '$a = O_RDWR; print "$a\n"'
    2