From 84d125af10ee94671065a3be762fb603f587d8d5 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sat, 21 May 2011 16:57:19 +0200 Subject: s/lcfirst/ucfirst/ Signed-off-by: franck cuny --- lib/Graph/GEXF/Role/Viz/Shape.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Graph/GEXF/Role/Viz/Shape.pm b/lib/Graph/GEXF/Role/Viz/Shape.pm index f8e57de..1f0ba67 100644 --- a/lib/Graph/GEXF/Role/Viz/Shape.pm +++ b/lib/Graph/GEXF/Role/Viz/Shape.pm @@ -16,7 +16,7 @@ role { my ( $type, $default ); - $type = lcfirst( $p->for ) . 'Shape'; + $type = ucfirst( $p->for ) . 'Shape'; if ( $p->for eq 'node' ) { $default = 'disc'; @@ -26,8 +26,9 @@ role { } has shape => ( - is => 'rw', - isa => $type, + is => 'rw', + isa => $type, + default => $default, ); }; -- cgit v1.2.3