- or download this
if (my @f = some_code())
{
# use @f here
}
# but not here
- or download this
if ((my @f = some_code()) == 1 || (@f = some_other_code()) == 1)
{
# I only expect one item back. Use $f[0] here.
}
- or download this
if ((my @f = some_code()) == 1 || (my @f = some_other_code()) == 1)
- or download this
{
my @f;
...
#...
}
}