in reply to Using keys from hashes

Anek, I think that your question is not clear enough, so that the answers you've got so far may or may not be to the point. Please explain a bit more what you are really trying to do.

Replies are listed 'Best First'.
Re^2: Using keys from hashes
by anek77713 (Acolyte) on Jul 18, 2013 at 07:02 UTC
    my $Bpod = 'B<(.*?)>'; my $B = '<b>'; my $b = '</b>'; my $Ipod = 'I<(.*?)>'; my $I = '<i>'; my $i = '</i>'; my $Upod = 'U<(.*?)>'; my $U = '<u>'; my $u = '</u>'; open(DATA, "<file.pod"); my @file = <DATA>; s/$Bpod/$B$1$b/gi for @file; s/$Ipod/$I$1$i/gi for @file; s/$Upod/$U$1$u/gi for @file;
    I have something like this... to convert POD to HTML and I was thinking how to write this in a better way ...
      See links referenced here, that's how you go about creating a simple parser