Board: DXpress Project

Subject

Re: DXpress code review

Author

Tim Pizey

Status

Date

15/09/1999 22:28

Message

Hi Bill,
I have changed the names of the files to
dx_upload.cgi
dx_process_file.pl
StyleSheet.pm
Format.pm
FormatFFF4.pm
and added:
FormatFFF3.pm
FormatHTML.pm
FormatSGML.pm
So tried nifty use conditional on output_type - wrong
So <tt>used</tt> all of the Format.....pm
That is Ok, but bulky.
Then tried:
<code>
if ($main::output_file_format eq 'fff4')
{
$main::output_file_style = new FormatFFF4;
}
elsif ($main::output_file_format eq 'fff3')
{
$main::output_file_style = new FormatFFF3;
}
elsif ($main::output_file_format eq 'html')
{
$main::output_file_style = new FormatHTML;
}
elsif ($main::output_file_format eq 'sgml')
{
$main::output_file_style = new FormatSGML;
}
else
{
die "No output style specified";
}
</code>
This produced the helpful message
'Bad name after after bold::'
Then I started to panic, and write this.
Calmed down, tried to reproduce it, and it
has gone away.
hey ho
Tim

DXpress Project Board

 

Post Follow-up

Search This Board

 

Message Context:

DXpress code review Tim Pizey 15/09/1999 22:28

    Re: DXpress code review Tim Pizey 15/09/1999 22:28



Home -  News -  Reference Sites -  Members -  Partners -  Guidelines -  Philosophy -  Your Details -  Logout