#!/usr/bin/perl -wl ($test = "tt") =~ /^\w(\w+)?\w+/ && print ($1) && print "'$test' authorized";
Standard input is empty
'tt' authorized
Use of uninitialized value $1 in print at prog.pl line 3.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!