Help for this page

Select Code to Download


  1. or download this
    >perl -ce"sub foo {}  fob 'abc'"
    String found where operator expected at -e line 1, near "fob 'abc'"
    ...
    
    >perl -ce"sub foo {}  foo 'abc'"
    -e syntax OK
    
  2. or download this
    >perl -ce"sub foo {}   foo { abc => 1 }"
    -e syntax OK
    
    >perl -ce"sub foo {}   fob { abc => 1 }"
    -e syntax OK
    
  3. or download this
    >perl -MO=Deparse -ce"sub foo {}   fob { abc => 1 }"
    sub foo {
    ...
        'abc', 1
    }->fob;
    -e syntax OK