[Phoenix-pm] Meeting Followup
Douglas E. Miles
doug at veritablesoftware.com
Fri Sep 3 18:13:22 PDT 2010
Thanks to everyone who made it out for the meeting last night! I enjoyed
meeting you or seeing you again. Here are the slides from the presentation:
http://pm.veritablesoftware.com/slides/viki/index.html
The link to the video will be posted once we have it.
As I promised, I verified that yes, 'tie'ing to an incomplete class will
blow up as demonstrated here:
#!/usr/bin/perl
use strict;
use warnings;
my %broken_hash;
tie(%broken_hash, 'Tie::Broken');
$broken_hash{foo} = "Foobar'd";
package Tie::Broken;
# TIEHASH
######################################################################
sub TIEHASH
{
my $package = shift;
my $class = ref($package) || $package;
my $self = {@_};
bless($self, $class);
return $self;
} # END: TIEHASH
will give you:
Can't locate object method "STORE" via package "Tie::Broken" at
./tie_broken line 10.
But, Good news everyone!
There are base classes available which prevent you from having to
implement everything. See more here:
http://perldoc.perl.org/Tie/Hash.html
More information about the Phoenix-pm
mailing list