#!/usr/bin/perl while(){ print eval('"'.$ARGV[1].'"')."\n" if /$ARGV[0]/; }