#!/usr/local/bin/perl -w use strict; use File::Spec::Functions qw/ splitdir rel2abs /; my $parent_dir = (splitdir(rel2abs($0)))[-2]; print "$parent_dir\n";
In reply to Re: how to get the current folder name where the program is running?
by Roger
in thread how to get the current folder name where the program is running?
by hweefarn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |