http://qs321.pair.com?node_id=633682


in reply to syntax error

for(param()) { push (@num, $_) if $_ =~ m/^\d$+/ }
You also want to make sure, that it's \d rather than d in the match expression.
--Artist