#!/usr/bin/perl my @cmd = @ARGV; my $fifo = $ENV{'UZBL_FIFO'}; #If there are no dots in the first word or more than one word is suppllied expect a phrase for google. Else go to the uri specified. if (index(@cmd[0], '.') == -1 || scalar @cmd > 1) { # Replace this with your search engine qx(echo "uri http://127.0.0.1:8000/search?content=wikipedia_en_all_nopic_01_2014&pattern=@ARGV" >> $fifo); } else { qx(echo "uri @cmd" >> $fifo); }