in reply to perl command line arguments

You can try -s:

perl -sne 'split(/,/);if ($_[7] eq $arg){$cnt++;}END{print "There +are $arg things in this file\n";}' -- -arg=something file_name.txt

Note that you need -- to stop perl itself from trying to use -arg as an argument.