Antoine HUE <[EMAIL PROTECTED]> writes:
> >Don't follow - can you put that in context with a small complete test case
> >and indicate what error you are getting.
> >
> >
> 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:
> $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.
You still have not explained why you have problems with it while
$ perl -e 'foo->scalar'
Can't locate object method "scalar" via package "foo" at -e line 1.
invoke the method without problem.
Regards,
Gisle Aas,
ActiveState
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs