in reply to How can you split inside pop?
perl -le '$s = "this is a string"; print +(split(/\s/, $s))[-1];' [download]