Solved

pass

Posted on 2001-06-12
1
132 Views
Last Modified: 2010-03-05
How to pass two parameters to a sub ?
I know how to read out 1 parameter (with
local ($key) = @_;  ), but how to read out the second parameter ?
0
Comment
Question by:oostwijk
1 Comment
 
LVL 3

Accepted Solution

by:
interiot earned 50 total points
ID: 6183828
my ($key, $lock) = @_;

    You can do this with any array...

my @a = (3, 4);
my @b = (1, 2, @a, 5);
my ($one, $two, $three, $four, $five) = @b;
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help with bash and/or perl commands on OS X Terminal 9 110
Perl 101 11 81
Migrate OTRS to newest version. 1 382
Removing permissions on a Cyrus mailbox via a wrapper script 3 106
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question