The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!./perl -w

use strict;
use Rc qw(walk);

if (! @ARGV) {
    print "rcconvert (deparse|terse|sh|csh) rcscript\n";
    exit
}

my $bend = ucfirst shift @ARGV;
require "Rc/$bend.pm";

walk(join('', <>), lc $bend);