Passing constants to subroutines

Posted by jesper on Stack Overflow See other posts from Stack Overflow or by jesper
Published on 2010-03-17T22:09:17Z Indexed on 2010/03/17 22:51 UTC
Read the original article Hit count: 401

Filed under:
|
|
|

I have got as follows:

use constant ABC => ('one', 'two', 'three');

and I want to pass this constant to variations_with_repetition(\@data, $k) subroutine as @data.

How should I do that?

© Stack Overflow or respective owner

Related posts about perl

Related posts about constant