in reply to [SOLVED]: Need help with range expression ('0 .. -0.5' === '0 .. 0.5')
Thanks for answers ;)
And later I've found a trivial "upgrade" to the initial range, for which I was blind yesterday... Just to add "int" in one place:
And later I've found a trivial "upgrade" to the initial range, for which I was blind yesterday... Just to add "int" in one place:
push @array, reverse @array[ 0 .. int( $n / 2 ) - 1 ];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: [SOLVED]: Need help with range expression ('0 .. -0.5' === '0 .. 0.5')
by AnomalousMonk (Archbishop) on Feb 24, 2019 at 22:17 UTC |
In Section
Seekers of Perl Wisdom