http://qs1969.pair.com?node_id=336604

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have a filename including path: "D:\nt\tools\whoa.txt". I can use basename to get the whoa.txt. How can I get the pathname--"D:\nt\tools\"?