in reply to capturing terminal directory relative path?
Try:
use strict; use warnings; use File::Basename; my $base = basename("/home/BORK/work/test-backfills/cp_test/82802"); # Note that $base is now '82802' [download]