#!/usr/bin/perl use strict; use warnings; my @pics = map { sprintf "%02d.jpg", $_ } 1..6; my @captions = qw( quark mehl tomate schinken kaese ananas ); for my $i ( 0 .. $#pics ) { print < $captions[$i] CAPTION:
$captions[$i] BILDINFO }