$new_name =~ s/.*/sniffer1.log/; #### $new_name = "sniffer1.log";