Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
GOAL:- I am trying to ready the keyvalues of the hash dashboard_branches and depending on the value am assigning the RLTAGURL but running into compilation error..can anyone provide guidance on what is wrong?
foreach my ${branch} (sort keys %dashboard_branches) { print "BRANCH: ${branch}"; if (${branch} =~ /^TAG_WCONNECT_BT/) { my $RLTAGRL = "http://qwiki.company.com/qca_CNNss/CNN-BT-FM +/BT_TAG_Releases"; } elsif (${branch} =~ /^TAG_BTHOST/) { my $RLTAGRL = "http://qwiki.company.com/qca_CNNss/CNN-BT-FM +/BT_TAG_Releases"; } elsif (${branch} =~/^TAG_WCONNECT_NFC/) { my $RLTAGRL = "http://qwiki.company.com/qca_CNNss/CNN-BT-FM +/NFC_TAG_Releases"; "create_dashboard.pl" 217L, 6996C written
<user:/local/mnt/workspace/user/Automation/swbuild/bin/dashboard>perl +create_dashboard.pl Global symbol "$RLTAGRL" requires explicit package name at create_dash +board.pl line 201. Execution of create_dashboard.pl aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Global symbol "$RLTAGRL" requires explicit package name at create_dashboard.pl line 201.
by Corion (Patriarch) on Jan 19, 2014 at 19:38 UTC | |
|
Re: Global symbol "$RLTAGRL" requires explicit package name at create_dashboard.pl line 201.
by LanX (Saint) on Jan 19, 2014 at 19:35 UTC |