From 8d48f69457f2ae167702f9df2be111773da155ae Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Sat, 20 Sep 2014 17:36:22 +0200 Subject: [PATCH] The basis of changes I'd like to make to IO spec - Str.IO gives an IO::Path that only does absolutifying paths *once* - IO::Path gets a caching "isDir" and "exists" attribute - IO::Path.lines/words open/close handle from IO::Path.path - IO::Handle.lines/words give lines / words from current file position - $*SPEC contains the appropriate IO::Spec::filesystem object - IO::Path gets a $.SPEC from a given IO::Spec object, default to $*SPEC - IO::Path.methods become wrappers around $!SPEC rather than $.SPEC This should allow for better optimizations (e.g. doing rel2abs only *once*) and for better resource usage (e.g having .lines/words close handles). This should also make all filetest methods much faster. --- S32-setting-library/Str.pod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/S32-setting-library/Str.pod b/S32-setting-library/Str.pod index c636619e4..20b10c89e 100644 --- a/S32-setting-library/Str.pod +++ b/S32-setting-library/Str.pod @@ -556,11 +556,11 @@ original string, and the proviso about empty lines. =item IO -Returns an unopened IO::Handle, using the string as the file path. +Returns an IO::Path, using the string as the file path. =item path -Returns an IO::Path, using the string as the file path. +A deprecated form of C. =item succ