Skip to content

Instantly share code, notes, and snippets.

Oliver hanleilei

  • Shanghai
Block or report user

Report or block hanleilei

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4631659
#Most of the power comes from the implicit smartmatching
#that can sometimes apply. Most of the time, when(EXPR) is
#treated as an implicit smartmatch of $_ , that is, $_ ~~ EXPR .
#(See Smartmatch Operator in perlop for more information on smartmatching.)
#But when EXPR is one of the 10 exceptional cases
#(or things like them) listed below, it is used directly as a boolean.
#1. A user-defined subroutine call or a method invocation.
You can’t perform that action at this time.