uksza has asked for the wisdom of the Perl Monks concerning the following question:
Hello wise monks,
is any better (more elegant) way to do it:
thanks for yours wisdom,
Lukasz
is any better (more elegant) way to do it:
my @array = qw/one two three/; my @out; push @out,"@array\n"; #push @out, reverse @array; <-- "threetwoone" push @out, "@{[reverse @array]}"; print @out;
thanks for yours wisdom,
Lukasz
Back to
Seekers of Perl Wisdom