Solved

pass

Posted on 2001-06-12
1
133 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delete query using perl dbi 3 112
perl to display a matrix report for 3-dimenional array 3 71
Any syntax error for this clone.plscript 6 144
Perl modules on linux ec2 3 123
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…

680 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