$Bill Luebkert wrote:
Antoine HUE wrote:Actually, I am using XML::Generator to produce some XML. This module is using the AUTOLOAD to create any kind of XML element using the syntax:
Hello,
is it possible to tell PERL to avoid interpreting method names as a key word?
Example:
$ref->scalar()
PERL will see scalar as a key word and is thus not able to compile.
Don't follow - can you put that in context with a small complete test case and indicate what error you are getting.
$gen = XML::Generator->new();
$gen->element_name('element content');
In this example, $gen is the XML generator instance and element_name is the name of the element to create. Due to PERL parsing, I cannot create an XML element whose name is also a PERL key word.
I actually found a workaround in the meanwhile: $scalar = 'scalar'; $gen->$scalar(3.14);
Still it is a workaround.
Antoine _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs