nysus has asked for the wisdom of the Perl Monks concerning the following question:
I have the following:
pop ($fp->get_files));
which gives "Experimental pop on scalar is now forbidden, near "->get_files)"" error. But
pop @{$fp->get_files}
Doesn't work either and gives an error: "Can't use string ("25") as an ARRAY ref while "strict refs" in use".
$f->get_files returns a list. I've tried other contortions but without success. Is there a way to do this in one line?
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
---|
Back to
Seekers of Perl Wisdom