#!/usr/bin/perl

open (FILE, "/home/markus/Info/quote");
open (OUT, ">/home/markus/Info/gedreht_quote");

while ()
{
	$t = $_;
	if ($t =~ m/~/)
	{	# Trennzeichen gefunden
		$i++;
	} else {
		@array [$i] .= $t;
	}
}

$"="\n~\n";

while (defined ($value = pop (@array)))
{
	print OUT $value;
	print OUT "~\n";
}
Fr Jul 30 13:54:24 CEST 2021
patent_button.gif valid-html401.png elektra.jpg fsfe-logo.png valid-css.png vim.gif anybrowser.gif