Help with Perl script

I have a file with column seperated data:

Column1_0 Column2
Column1_0 Column2
Column1_1 Column2
Column1_3 Column2

I need to use the data in this file to feed into a command which will use not only the column data as input but also the digit after the underscore in the first column.

Command would look like this:

command -arguments <Column1/_0> <Column2>

Oh well, I guess I'll answer my own question:

cat file.txt | perl -pe 's/(.*?)\s+(.*?)$/command \-$2 $1/' | perl -pe 's/_/\//'