Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Fetdching filenames starting numbers.

by fruiture (Curate)
on Aug 22, 2002 at 17:04 UTC ( [id://192089]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Fetdching filenames starting numbers.
in thread Fetdching filenames starting numbers.

There's a "return" statement in nearly every procedural programming language supporting subroutines. It causes a subroutine to be stopped and to return a certain value to the caller.

sub foo { return 1 }; $var = foo(); #$var is 1 sub bar { print "AAA"; return 1; print "BBB"; #will never happen, for 'return' has # stopped this sub } $var = bar();

The breaking character of return is not present in all languages, i know ugly Pascal doesn't have a return statement and you cannot exit a sub from the middle.

These are the very basics, try a good book to start!

--
http://fruiture.de

Replies are listed 'Best First'.
Re: Re: Re: Re: Fetdching filenames starting numbers.
by twerq (Deacon) on Aug 22, 2002 at 19:34 UTC
    There's a "return" statement in nearly every procedural programming language supporting subroutines

    Not Visual Basic!

    --twerq
Re: Re: Re: Re: Fetdching filenames starting numbers.
by Anonymous Monk on Aug 22, 2002 at 18:51 UTC
    I cant thank you enough for your help! Thanks again.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2025-06-15 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.