in reply to
how to get the parent directory name?
Bzzzt! Crash! This is the sound of the cross-platform compatibility police knocking at your door!
I feel obliged to point out that there is a module that encapsulates the concept of parent directory. Thus your code becomes:
When code begins to involve both Cwd and File::Spec, you know it's time to look at Path::Class (see elsewhere in this thread).
• another intruder with the mooring in the heart of the Perl
You may view the original node and the consideration vote tally.
Priority 1, Priority 2, Priority 3
Priority 1, Priority 0, Priority -1
Urgent, important, favour
Data loss, bug, enhancement
Out of scope, out of budget, out of line
Family, friends, work
Impossible, inconceivable, implemented
Results (67 votes),