darkreaper00
Technical User
this:
doesn't do what I want it to do: namely, go to the fifth value after the current one, and trash all the others. I know that this generally pertains to strings, but with perl being so intuitive-friendly, I'd like it to intuit me telling it to do something five times. You see what I'm trying to do, now tell me how to do it :c)
...And to answer before you ask, yes, i know I could write a for loop* to do that, but I want to know how to do it this way (as usual...), if I can.
* (or
, even)
Thanks!
Code:
($_=shift(@tony)) x5;
doesn't do what I want it to do: namely, go to the fifth value after the current one, and trash all the others. I know that this generally pertains to strings, but with perl being so intuitive-friendly, I'd like it to intuit me telling it to do something five times. You see what I'm trying to do, now tell me how to do it :c)
...And to answer before you ask, yes, i know I could write a for loop* to do that, but I want to know how to do it this way (as usual...), if I can.
* (or
Code:
$_=shift(@tony);
$_=shift(@tony);
$_=shift(@tony);
$_=shift(@tony);
$_=shift(@tony);
Thanks!