Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Flipin good, or a total flop?

by chibiryuu (Beadle)
on Jan 27, 2006 at 21:53 UTC ( #526105=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Flipin good, or a total flop?
in thread Flipin good, or a total flop?

bar() if my $foo;
is different from
my $foo if bar(); # don't do this!

The first case is equivalent to

if (my $foo) { # $foo is lexically scoped to this block bar(); }
just like how
for my $foo (@foo) { # $foo is lexically scoped to this block baz(); }

So if ((my $start =~ /start/) .. (my $end =~ /end/)) is perfectly happy.


Comment on Re^4: Flipin good, or a total flop?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://526105]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2015-07-28 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls