Hi all, I have this:
----------------- #!/usr/bin/perl use warnings; use strict; my @pics = <*.jpg>; my $website = 'http://www.website.com/uploads'; sub links { foreach (@pics) { print "<a href=\"$website/$_\">$website/$_</a>\n"; } } ----------------- I would normally call the subroutine like &links; but I want to put the result into a variable in order to stick it into an e-mail. I have been trying all day reading all my perl books and it's time to ask for help. Thanks. -- Just getting into the best language ever... Fancy a [EMAIL PROTECTED] Just ask!!! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>