From: Dave Rolsky Date: Fri, 5 Feb 2010 17:13:02 +0000 (-0600) Subject: Add a hint about using ref() or reftype X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=83c05a5900bc86f71397f34696147d2f05ac6969;p=gitmo%2Fmoose-presentations.git Add a hint about using ref() or reftype --- diff --git a/moose-class/exercises/t/01-classes.t b/moose-class/exercises/t/01-classes.t index dd11fab..0e83a2e 100644 --- a/moose-class/exercises/t/01-classes.t +++ b/moose-class/exercises/t/01-classes.t @@ -17,6 +17,10 @@ # # Person->new( [ 'Lisa', 'Smith' ] ); # +# Hint: A quick and dirty way to check this is to use ref() to check if the +# first value in @_ is an array reference (perldoc -f ref). A nicer way to do +# this would be use to use Scalar::Util::reftype(). +# # Create an Employee class in lib/Employee.pm # # The Employee class is a subclass of Person