#!/usr/bin/perl use strict; use warnings; #825146 my @line = ; for my $line(@line) { chomp $line; if ( $line =~ m/(]+)/ ){ print " " . $1 . "> \n"; } else { print "\t nope: $line \n"; # you may want to send this to a different file } } __DATA__

Hey
yada yada

Yo

foobar with no img