herda05 has asked for the wisdom of the Perl Monks concerning the following question:
This outputs the following:$Cal_ref = { 'cal_name' => $cal_name, 'dates' => \@dates, 'desc' => $cal_desc }; $twsCalendars[$i] = $Cal_ref; $i++; ... for (my $i = 0; $i < $length; $i++) { # cycle through the list and print all the calendar names my $c_href = $twsCalendars[$i]; my $cal_name = $$c_href{'cal_name'}; my $foo = ".cal"; my $var1 = $cal_name . "$foo"; print ("$cal_name\n"); print ("$var1"); print "\n"; print (" $var1"); print "\n";
Whatever I try, I can't concatenate the ".cal" on the end of $cal_name.BCPFTPCL .calTPCL .calBCPFTPCL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Concatenation appends to front of variable
by ikegami (Patriarch) on May 29, 2009 at 20:51 UTC | |
by herda05 (Acolyte) on May 29, 2009 at 20:59 UTC | |
by ikegami (Patriarch) on May 29, 2009 at 22:52 UTC | |
by GrandFather (Saint) on May 30, 2009 at 03:35 UTC |