atend has asked for the wisdom of the Perl Monks concerning the following question:
Monks,
I've encountered the following weirdness:
#!/usr/bin/perl #use Switch; print while <DATA>; __DATA__ some data here
If I uncomment the "use Switch" line, it prints nothing. Bug, or am I missing something? perl v5.12.2.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Switch and __DATA__
by Perlbotics (Archbishop) on Jun 16, 2011 at 13:16 UTC | |
by atend (Acolyte) on Jun 16, 2011 at 14:08 UTC | |
|
Re: Switch and __DATA__
by MidLifeXis (Monsignor) on Jun 16, 2011 at 12:53 UTC | |
by atend (Acolyte) on Jun 16, 2011 at 13:05 UTC | |
|
Re: Switch and __DATA__
by Tux (Canon) on Jun 16, 2011 at 13:36 UTC | |
by atend (Acolyte) on Jun 16, 2011 at 13:46 UTC | |
by Tux (Canon) on Jun 16, 2011 at 14:27 UTC | |
by ikegami (Patriarch) on Jun 16, 2011 at 16:46 UTC |