Your code is not equivalent to his though. You're missing the logic that makes sure all picked numbers are unique. Try changing the 90 to 10, it shouldn't take more than a few tries to get dupes with your code.
Something like the below would work (though not very obfuscated):
srand;@_=1..90;print(splice(@_,rand($#_-$_),1),$/)for+1..5;