#!/usr/bin/perl use strict; use warnings; die unless $ARGV[0]; my ($reg,$count) = (qr/$ARGV[0]/,0); open( my $fh, ' ); print $count,"\n";