Peter Rabbitson wrote:
Since you
1) are not very convincing in explaining why it would be
necessary to use soft references, and
2) argue against enabling strictures, and with that make Perl
help you get your code right,
you'll find that few people here are inclined to help you.
(You can always read
> Since you
>
> 1) are not very convincing in explaining why it would be necessary to
> use soft references, and
>
> 2) argue against enabling strictures, and with that make Perl help you
> get your code right,
>
> you'll find that few people here are inclined to help you.
>
> (You can always r
> It would still IMHO be much better to do something like:
>
> %cards = (
> 4 => {name => 'Visa'},
> 5 => {name => 'MasterCard'},
> 6 => {name => 'Discover'},
> 3 => {name => 'AmEx'},
> );
>
> foreach my $cardid (keys %cards) {
> foreach my $property (@props) {
> $
From: Peter Rabbitson <[EMAIL PROTECTED]>
> For example transaction fee, fee assessment, discount rate for
> all visa, master, discover, amex. Say we name the Input types
> accordingly:
>
> 6_pct - discover discount rate
> 6_tfee - discover transaction fee
> 6_fa - discover fee assessment
> 5_pct
[ Please type your reply below the quoted part of the message you are
replying to. Please only quote what's needed to give context. ]
Peter Rabbitson wrote:
However for aesthetical reasons I wanted to know how to reference a
variable, nevertheless in this case it is completely justified.
I disagree
Ok, I guess I need to bring more context to the stage. The script itself is
a credit card batch parser, which guesses the card type by the first digit,
and proceeds by calculating totals, transaction counts, transaction fees,
and bunch of other relevant things. So ebverything in the script revolves