Hi,
I've got a bit of a problem :/
Basically, I'm looping a hashref with;
...
} keys %$var;
However, if you do;
.. do something
if (something) {
next;
}
} keys %$var;
..it gives an error about the "next" not being valid outside a foreach().
Basically, I just need to know what the map{} equivilant of "next" is?
TIA
Andy
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
I've got a bit of a problem :/
Basically, I'm looping a hashref with;
Code:
map { ...
} keys %$var;
However, if you do;
Code:
map { .. do something
if (something) {
next;
}
} keys %$var;
..it gives an error about the "next" not being valid outside a foreach().
Basically, I just need to know what the map{} equivilant of "next" is?
TIA
Andy
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!