New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
':flock' not recognized unless it's first #7053
Comments
From @mjdominusCreated by @mjdominus plover% bash-2.04$ perl -le 'use Fcntl ":flock"; print "OK"' plover% perl -le 'use Fcntl ":flock", "O_RDONLY"; print "OK"' Perl Info
|
From @steve-m-hayMark-Jason Dominus (via RT) wrote:
Exporter's manpage says: "If the first entry in an import list begins with !, : or / then the By implication, the special treatment of the export tags (names Whether or not that's what people actually _expect_ (i.e. without having - Steve Radan Computational Ltd. The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email. |
The RT System itself - Status changed from 'new' to 'open' |
@iabyn - Status changed from 'open' to 'resolved' |
From @mjdominusSteve Hay <steve.hay@uk.radan.com>:
Your conclusion is not correct, because in use POSIX qw(:errno_h :termios_h !TCSADRAIN !/^EXIT/); ':termios_h' is treated specially even though it does not appear first. More to the point, I wonder what would be the possible disadvantage of If modules wanted to export a lot of symbols that really did begin Am I missing something here? |
From @gisleMark Jason Dominus <mjd@plover.com> writes:
Allowing ':tag' everywhere makes the implementation of Exporter::Heavy Other than that I don't see any problem. Regards, |
From @steve-m-hayMark Jason Dominus wrote:
Yes, sorry - I phrased it badly. Exporter's manpage itself is correct In order to have the :tags treated specially, the _first_ entry must
The special treatment _does_ extend to other items in the list, but only
I agree, I think. The special handling of colons etc should be applied - Steve Radan Computational Ltd. The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email. |
From @TuxOn Wed 21 Jan 2004 14:53, Gisle Aas <gisle@ActiveState.com> wrote:
like this? Inline Patch--- lib/Exporter/Heavy.pm.org 2004-01-21 16:32:04.000000000 +0100
+++ lib/Exporter/Heavy.pm 2004-01-21 16:34:24.000000000 +0100
@@ -69,7 +69,7 @@ sub heavy_export {
$cache_is_current = 1;
}
- if ($imports[0] =~ m#^[/!:]#){
+ if (join ("\n", @imports) =~ m{\n[/!:]}) {
my $tagsref = \%{"${pkg}::EXPORT_TAGS"};
my $tagdata;
my %imports;
-- |
From @gisle"H.Merijn Brand" <h.m.brand@hccnet.nl> writes:
Is that faster than the more obvious: if (grep m#^[/!:]#, @imports) { Also I don't think your version will recognize ":foo" in the first Regards, |
From @TuxOn Wed 21 Jan 2004 17:32, Gisle Aas <gisle@ActiveState.com> wrote:
boy, am I glad I did not submit that proposal :) I still don't like # as re sep now that we have a much better readable {}
-- |
From @TuxOn Wed 21 Jan 2004 17:32, Gisle Aas <gisle@ActiveState.com> wrote:
only if there is a large list. grep will match against every item, where join
Test cases welcome still Change 22192 by merijn@merijn-l1 on 2004/01/21 21:10:10 [perl #25160] ':flock' not recognized unless it's first Affected files ... ... //depot/perl/lib/Exporter/Heavy.pm#22 edit Differences ... ==== //depot/perl/lib/Exporter/Heavy.pm#22 (text) ==== @@ -69,7 +69,7 @@ - if ($imports[0] =~ m#^[/!:]#){
-- |
From @gisle"H.Merijn Brand" <h.m.brand@hccnet.nl> writes:
You should also patch up the Exporter documentation that explained the --Gisle
|
From @TuxOn Wed 21 Jan 2004 23:59, Gisle Aas <gisle@ActiveState.com> wrote:
Somewhat like below? Does the *change* need to be documented? Inline Patch--- lib/Exporter.pm.org 2004-01-22 01:32:23.000000000 +0100
+++ lib/Exporter.pm 2004-01-22 01:34:17.000000000 +0100
@@ -212,9 +212,9 @@ need to know to use Exporter.
=head2 Specialised Import Lists
-If the first entry in an import list begins with !, : or / then the
-list is treated as a series of specifications which either add to or
-delete from the list of names to import. They are processed left to
+If any of the entries in an import list begins with !, : or / then
+the list is treated as a series of specifications which either add to
+or delete from the list of names to import. They are processed left to
right. Specifications are in the form:
[!]name This name only
-- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) |
From @nwc10On Thu, Jan 22, 2004 at 01:36:15AM +0100, H.Merijn Brand wrote:
I'd be happier if we actually documented that a change was made. I fully expect many module authors not to read the documentation until after
Definitely by 5.8.4, yes. I think that this change is significant
Calling all happy passive readers of perl5-porters - submit a patch, get Nicholas Clark |
Migrated from rt.perl.org#25160 (status was 'resolved')
Searchable as RT25160$
The text was updated successfully, but these errors were encountered: