#!/usr/bin/perl -w use strict; my @units = @ARGV; foreach (@units) { $_ =~ s|^(?:.*/)*(.+)\.pas$|$1|os; } local $" = ', '; print <