Brian Cassidy wrote:
The line you're quoting is from CQL::ModifierSet, but the object you're
accessing is CQL::Relation -- in that module, getModifiers you can see that
it: "Returns a list of modifiers associated with a CQL relation."
So, by using Data::Dumper, I can print them in detail:
use Data::Dumper;
print Dumper @RelationModifiers;
which gives:
$VAR1 = [
undef,
'relevant'
];
And therein lies the secret to the problem. I had first used a construct
very close to what Anton suggested. When I got an undefined value, I
assumed the problem was with my code and went on to look for other
solutions.
Next time I'll try Data::Dumper *before* the list. Then I'll read the
source code more closely because the toXCQL function actually executes
the getModifiers() function and processes the results in the same way
that I needed to. (what it does with the results is different but that's OK)
Thanks guys.
Walter