[html]
<br>########## perl modules ############<br>use TeamSite::Config;<br>use OLG::tpl_utils;<br>use OLG:

penDeploy;<br>########## perl modules ############<br>my $iwhome = TeamSite::Config::iwgethome();<br>my $iwmount = TeamSite::Config::iwgetmount();<br><br>($iwcfg) = "$iwhome/bin/iwconfig";<br><br>my $dcrpath = iwpt_get_dcr_name();<br>$dcrpath =~ s#\.iwmnt#iwmnt#g;<br>my $dcr_name = iwpt_get_dcr_name("basename");<br><br>my $prefix = getLOB($dcrpath);<br>my $prefDir = uc($prefix);<br>my $templatename = getDataType($dcrpath);<br>my $contentname = $dcr_name;<br><br>$dcrpath =~ m/\/([^\/]+)\/data/;<br>my $ofile = "generated/component/".$templatename."/".$prefix."_".$contentname.".xml";<br>(my $hostname = `$iwcfg iwwebd host`) =~ s#\n$##; <br>my $edit_path = "http://".$hostname."/iw-cc/edit?vpath=".$dcrpath;<br>$edit_path =~ s#$iwmount##g;<br>(my $bellca = `$iwcfg iwwebd bellca`) =~ s#\n$##;<br>my $endtag = "]"."]>";<br>my $cdata = "<!"."[CDATA[";<br><br>############ Build the initial media lists<br>my
@media_ids = ();<br>my $filelist = 'generated/filelist/';<br>my $media_file = $filelist.$prefix."_".$contentname."_images.txt";<br>my
@matches = getImageList( iwpt_get_dcr_name() );<br><br>############ Build the region array<br>my
@region_array = ("default");<br>my $item_region = join(',',
@region_array);<br>############<br><br><br>
[/html]
In this code, "use CGI" is not used. So how will the progrma understand the environment variables ?
variable is defined as ($iwcfg) , why do we need bracket around variable name, what does it do ? There are my variables declred with brackets as well. So what does it do when there are brackets around variable name ?
Whats the point in declaring my variables at the top level in program. Since my variables are used for localalization of the sciope, why is it at the top ?
Whats the point in declaring "$dcrpath" and "my $dcrpath" at the same level ? Are they different from each other ?