Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Sarah Bradberry
Sarah Bradberry
7,115 Points

Perl Q - fault in my script? Help please!

I don't have any experience writing perl scripts yet and I'm having a problem running a script called mediawiki2wp. I'm hoping someone with experience can help.

I'm running strawberry perl on a 64bit windows 7 computer (I have no idea if that info is needed but just in case...)

When I run it, it stops with the following notice:

at c:/strawberryperl/site/lib/XML/Smart.pm line 240

at c:\convert\mediawiki2wp.pl line 68

I'm assuming that means these are the lines where it hits an error and stops

Line 240 in Smart.pm is

 $$this->{tree} = &XML::Smart::Tree::parse($file,$parser,@_) ;

and line 68 in mdiawiki2wp.pl is

my $XML = XML::Smart->new($opt{f},'XML::Smart::Parser');

Is this enough information to tell me what needs to be changed in mediawiki2wp.pl to make it run?