Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: optional command line arguments

by ig (Vicar)
on Aug 07, 2012 at 19:42 UTC ( #986067=note: print w/replies, xml ) Need Help??


in reply to optional command line arguments

is there a block type syntax similar to the C++ one I put at the top?

You can use do

my $b = do { multiple_commands_here; final_command; };

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986067]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2018-06-18 22:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (111 votes). Check out past polls.

    Notices?