Help for this page

Select Code to Download


  1. or download this
    $ perl -MO=Deparse,-p -e 'fun(-url => $httpRefer);'
    fun((-'url'), $httpRefer);
    ...
    $ perl -MO=Deparse,-p -e 'fun(url => $httpRefer);'
    fun('url', $httpRefer);
    -e syntax OK
    
  2. or download this
    $ perl -MO=Deparse,-p -e 'fun(-url);'
    fun((-'url'));
    -e syntax OK
    
  3. or download this
    $ perl -Mstrict -Mwarnings -le '
        sub fun { print "@_" }
    ...
    Bareword "url" not allowed while "strict subs" in use at -e line 3.
    Bareword "url"¬ allowed while "strict subs" in use at -e line 7.
    Execution of -e aborted due to compilation errors.
    
  4. or download this
    $ perl -Mstrict -Mwarnings -le '
        sub fun { print "@_" }
    ...
    3 -url httpRefer
    4 -url httpRefer
    6 url httpRefer