* Nicholas Clark <perlbug-followup@perl.org> [2008-06-20 18:00]: > $ ./perl -Ilib -e 'sub foo {return return}' > $ > > How come this isn't a syntax error? Because `return` is a function, not a statement, presumably so you can write the following? sub process_file { # ... open my $fh, '<', $fn or return; # ... } -- *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1} &Just->another->Perl->hack; #Aristotle Pagaltzis // <http://plasmasturm.org/>Thread Previous