print '<meta name="', $key, '" content="', $formdata{$key}, '">' if length $formdata{$key};
This would easily allow you to iterate through the entire contents of the hash using a foreach loop with a keys %formdata construct.
perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'
In reply to Re: If statements while in PRINT
by rob_au
in thread If statements while in PRINT
by venimfrogtongue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |