Skip to content
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

Missing Label and -w #585

Closed
p5pRT opened this issue Sep 20, 1999 · 4 comments
Closed

Missing Label and -w #585

p5pRT opened this issue Sep 20, 1999 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Sep 20, 1999

Migrated from rt.perl.org#1442 (status was 'resolved')

Searchable as RT1442$

@p5pRT
Copy link
Author

p5pRT commented Sep 20, 1999

From The RT System itself

This is with _61 ( perl -wc doesn't report any errors )

use strict;

for my $i (1..5) {
  if ( $i == 2 ) { next Loop; }
}

--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany

@p5pRT
Copy link
Author

p5pRT commented Jul 13, 2005

From @schwern

[RT_System - Sun Sep 19 20​:00​:34 1999]​:

This is with _61 ( perl -wc doesn't report any errors )

use strict;

for my $i (1..5) {
if ( $i == 2 ) { next Loop; }
}

I presume you're reporting that "perl -cw" does not report the lack of a
loop label as an error? This is correct because a loop label could be
created at run time. Its odd but can happen.

  $label = "Loop";
  eval qq[$label​: for(1..5) {
  foo();
  print "Never run"
  }];

  sub foo { for (1..5) { next Loop } }

One of the facts of life living with such a dynamic language.

@p5pRT
Copy link
Author

p5pRT commented Jul 13, 2005

The RT System itself - Status changed from 'stalled' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Jul 13, 2005

@schwern - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant