My interest in Perl started when I became frustrated with the limitations of the IBM mainframe code editors when trying to review COBOL code. So I decided to write a set of scripts that would wrap COBOL source in HTML so that it could be viewed using a ‘web browser’. The result was two scripts that created a set of files that enabled the main program source and its associated copybooks to be viewed.
csv.pl does most of the work - it takes a ‘cobol’ source file (a text file) and inserts appropriate html tags to enable it to be viewed using a web browser (Chrome / Firefox etc.
It should be noted that these scripts were some of the first I developed and as such (at least currently) do not follow any best-practice / standards etc. Changes are currently underway to improve the structure of the scripts and the design of the user interface.
: the csv.pl script has been updated so that input / output details are stored in a config file, styling is now provided by Bootstrap and scrolling up /down when 'clicking' on a link is smooth (smoothScroll.js). For the moment the keyword highlighting has been removed (need to work out how to do this properly). :-
To run the scripts :-
perl csv.pl --config='csv.cfg'
The following assumptions are made :-