Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Can you explain the result?

by choroba (Abbot)
on Dec 06, 2011 at 14:04 UTC ( #942033=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Can you explain the result?
in thread Can you explain the result?

It makes

open my $FH, '<', $filename or die $!;
and is similar to shell's
mkdir $dir || exit 1
But, of course, you can think whatever you want.


Comment on Re^5: Can you explain the result?
Select or Download Code
Re^6: Can you explain the result?
by PerlOnTheWay (Scribe) on Dec 06, 2011 at 14:07 UTC

    The real problem is that return is pretty different than ordinary subs like open and etc...

      How so?

        return affects control flow, which a function in general cannot (leaving Coro aside). Execution after a function returns will always resume right after where the function was called.

        The only built-in function that somewhat affects control flow is exit.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (18)
As of 2014-09-23 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (221 votes), past polls