igotux igotux wrote:
Hi Team,

Can someone explain what is wrong happeneing here ?

$ perl -e 'use Business::ISBN; $isbn_object = new
Business::ISBN('0-59610-206-2');print $isbn->as_string;'
Can't call method "as_string" on an undefined value at -e line 1.
$

John pointed out one mistake. The other mistake is your use of single quotes around the ISBN.

$ perl -MBusiness::ISBN -le '
$isbn = Business::ISBN->new("0-59610-206-2");
print $isbn->as_string;
'
0-596-10206-2
$

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to