I want to unshift one scalar to the top of an array.
This is the only thing I can get past perl.
my @array = ( "Top" ); unshift (@array, @output);
Which seems wasteful, I have tried unsucessfully
unshift (("Top"), @output);
Is there a better way to do it without adding "my @array" to the mix?
ThanxIn reply to unshift single scalar by Bodger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |