Hall of mirrors effect

This is the code that mirrors and prints the camels.

while (<DATA>) {
    # head-reducing code (skipped)
    $camel .= "\n";  # end of line
}
@camel1hump = split ( /\n/, $camel );
foreach (@camel1hump) {
    chomp; $Camel = $_;
    y/LJF7\173\175`\047/\061\062\063\064\065\066\067\070/;
    y/12345678/JL7F\175\173\047`/;
    $_ = reverse;
    print "$_\040$Camel\n";
}
foreach (@camel1hump) {
    chomp; $Camel = $_;
    y/LJF7\173\175`\047/12345678/;
    y/12345678/JL7F\175\173\047`/;
    $_ = reverse;
    print "\040$_$Camel\n";
}

Previous | Next


Copyright © 2000-2001, Philippe "BooK" Bruhat.
Camel code, copyright © 2000, Stephen B. Jenkins.