Hi,
I am wrote a presentation template and when i try to compile it gave me the following errors..
Error:
Use of uninitialiazed value in index at line 125 which is [my $wa_path= substr($dcrpath, 0, index($dcrpath, "templatedata") - 1);]
Use of uninitialiazed value in substr at line 125 which is [my $wa_path= substr($dcrpath, 0, index($dcrpath, "templatedata") - 1);]
Following is the snippet of my presentation template
[
Add your project Comment here
<br>use TeamSite::Config;<br>use TeamSite::JavaResourceBundle;<br>my $debug_output = "D:/Interwoven/TeamSite/local/logs/homecountry.log"; <br>debug("DEBUGGING THE HTML OUTPUT FOR THE HomeCountry TEMPLATE.....");<br>sub debug {<br>if ($debug_output) {<br>open(OUT, ">>$debug_output") || return;<br>print OUT
@_, "\n";<br>close(OUT);<br>}<br>}<br>my $dcrpath =iwpt_get_dcr_name(); <br>my $iwhome = TeamSite::Config::iwgethome();<br>my $output_file;<br>my $wa_path= substr($dcrpath, 0, index($dcrpath, "templatedata") - 1);<br>$wa_path =~s/\\/\//g; <br>debug("workarea:$wa_path");<br>my $previewornot = iwpt_get_flag_param('-oprefix');<br>$previewornot = "preview" if $previewornot =~ /zz.*/; <br>debug("previewornot:$previewornot");<br>my $generate_folder="/html/"; <br>my $page=qq(<html><br><body><br><p><br>this is para<br></p><br></body><br></html>);<br>debug("page:$page");<br>
]
Can anyone please suggest where am i going wrong......
Thanks in Advance...