Help for this page

Select Code to Download


  1. or download this
    Useless use of a variable in void context
    
  2. or download this
    lorien:~$ perl -wle '$SIG{__WARN__}=sub{print"TRAPED"};s///'
    TRAPED
    ...
    Useless use of a variable in void context at -e line 1.
    lorien:~$  perl -wle 'BEGIN{$SIG{__WARN__}=sub{print"TRAPED"};}$.,$.=0
    +'
    TRAPED
    
  3. or download this
    lorien:~$  perl -wle '$SIG{__WARN__}=sub{print"TRAPED"};eval q{$.,$.=0
    +;}'
    lorien:~$
    lorien:~$  perl -wle '$SIG{__WARN__}=sub{print"TRAPED"};eval {$.,$.=0;
    +}'
    Useless use of a variable in void context at -e line 1.
    lorien:~$