Last active
August 29, 2015 13:56
-
-
Save sdeseille/9217661 to your computer and use it in GitHub Desktop.
concatener une variable plus une chaine de caractère pour référencer une autre variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $current_DATAMODELCLASS; | |
my %table_catalog=('EventParsing_modele' => {} | |
,'EventParsingItem_modele' => {} | |
,'EventParsingItemRegExpr_modele' => {} | |
); | |
foreach my $current_DATAMODELCLASS (qw(EventParsing EventParsingItem EventParsingItemRegExpr)){ | |
print "DEBUG: $current_DATAMODELCLASS\n"; | |
foreach my $data_m_record (@DataModelColumn_table){ | |
if ($data_m_record->[$DataModelColumn_idx{DATAMODELCLASS}] eq "$current_DATAMODELCLASS") { | |
my $column_code=$data_m_record->[$DataModelColumn_idx{CODE}]; | |
my $column_type=$data_m_record->[$DataModelColumn_idx{TYPE}]; | |
$table_catalog{"${current_DATAMODELCLASS}_modele"}->{$column_code} = $column_type;; | |
print "$column_code - $column_type\n"; | |
} | |
} | |
} | |
print p %table_catalog; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment