in reply to Re: C<while> magic also working with glob(): intentional or not?
in thread C<while> magic also working with glob(): intentional or not?
That's definitely code you don't want to be using in productionHuh! Don't misunderstand me...
That's definitely code I don't want to be using in any case.
More precisely, as I thought I had clearly said in, this popped out here:
while (<@dataarray>) { my @microdata;
Now, when I saw this I was astonished and I doubted the author's claim that "it does do the job I require", as I would have expected it to fail outright.
OTOH I do know what is happening here but I'd like to know why it happens, that is, to express myself perhaps not extremely precisely from the technical pov, but hopefully clearly enough why "perl adds a
in front of glob".
The point being, I would consider it more logical either not to add anything or even to yield an error or emit a warning...
|
|---|