Change 22566 by [EMAIL PROTECTED] on 2004/03/23 16:23:58 Unify 5.008 and 5.009's B::Concise 0.58
Affected files ... ... //depot/perl/ext/B/B/Concise.pm#34 edit Differences ... ==== //depot/perl/ext/B/B/Concise.pm#34 (text) ==== Index: perl/ext/B/B/Concise.pm --- perl/ext/B/B/Concise.pm#33~22565~ Tue Mar 23 08:05:28 2004 +++ perl/ext/B/B/Concise.pm Tue Mar 23 08:23:58 2004 @@ -478,14 +478,18 @@ $priv{"exit"}{128} = "VMS"; $priv{$_}{2} = "FTACCESS" for ("ftrread", "ftrwrite", "ftrexec", "fteread", "ftewrite", "fteexec"); -$priv{$_}{4} = "FTSTACKED" - for ("ftrread", "ftrwrite", "ftrexec", "fteread", "ftewrite", "fteexec", - "ftis", "fteowned", "ftrowned", "ftzero", "ftsize", "ftmtime", - "ftatime", "ftctime", "ftsock", "ftchr", "ftblk", "ftfile", "ftdir", - "ftpipe", "ftlink", "ftsuid", "ftsgid", "ftsvtx", "fttty", "fttext", - "ftbinary"); -$priv{$_}{2} = "GREPLEX" - for ("mapwhile", "mapstart", "grepwhile", "grepstart"); +if ($] >= 5.009) { + # Stacked filetests are post 5.8.x + $priv{$_}{4} = "FTSTACKED" + for ("ftrread", "ftrwrite", "ftrexec", "fteread", "ftewrite", "fteexec", + "ftis", "fteowned", "ftrowned", "ftzero", "ftsize", "ftmtime", + "ftatime", "ftctime", "ftsock", "ftchr", "ftblk", "ftfile", "ftdir", + "ftpipe", "ftlink", "ftsuid", "ftsgid", "ftsvtx", "fttty", "fttext", + "ftbinary"); + # Lexical $_ is post 5.8.x + $priv{$_}{2} = "GREPLEX" + for ("mapwhile", "mapstart", "grepwhile", "grepstart"); +} sub private_flags { my($name, $x) = @_; End of Patch.