# New Ticket Created by Tom Browder # Please include the string: [perl #127407] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=127407 >
Class IO:Path currently has many methods for handling path name. The list currently includes: method abspath method basename method extension method dirname method volume method parts method path method Str I would like to see a new method named, say, stemname, which would be similar to basename except any suffix is removed. # existing method: basename > say IO::Path.new("docs/README.pod").basename; README.pod # existing method: extension > say IO::Path.new("docs/README.pod").extension; pod # new method: stemname > say IO::Path.new("docs/README.pod").stemname; README # updated old method: parts > say IO::Path.new("docs/README.pod").parts.perl; {:basename("README.pod"), :directory("doc"), :dirname("doc"), :volume(""), :basename("README.pod"); :stemname("README")} Best regards, -Tom