Hello fellow monks,
Really perplexed here but may be a obvious mistake can anyone see it.

my $data = XMLin("C:\\core\\jobs_1.xml"); #works perfectly my $filename = $config->{'DRIVE'}.$config->{'JOBS_XML_FILE'} print $filename."\n"; my $data = XMLin($filename); __OUTPUT__ C:\\core\\jobs_1.xml panic: pp_match start/end pointers at C:/Perl/lib/File/Basename.pm lin +e 186.
Needless to say I am panicing a little.
Updated code
use strict; my $config = XMLin("config.xml"); my $data = XMLin("C:\\core\\jobs_1.xml"); #works perfectly my $config = XMLin("config.xml"); my $filename = $config->{'DRIVE'}.$config->{'JOBS_XML_FILE'} $filename =~ s/\\\\/\\/g; print $filename."\n"; my $data = XMLin($filename); __OUTPUT__ C:\core\jobs_1.xml panic: pp_match start/end pointers at C:/Perl/lib/File/Basename.pm lin +e 186.
And I'm still getting the same message;
Update 2 Thanks to all the monks who have answered here. perl -v gave

This is perl, v5.8.3 built for MSWin32-x86-multi-thread (with 8 registered patches, see perl -V for more detail) Copyright 1987-2003, Larry Wall Binary build 809 provided by ActiveState Corp. http://www.ActiveState. +com ActiveState is a division of Sophos. Built Feb 3 2004 00:28:51

But this is not the problem. After some investigation I found the problem must be in Komodo which I am using to edit and run this program. When I ran it at the command line no problems XMLin read the file and and the program continued on its merry way. Strange


In reply to Error in File::Basename by Scarborough

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.