With regard to how you store your data in a standardised format I would suggest you consider CSV files.
- Easy to manipulate with Perl:
- Easy to use with javascript - many javascript libraries can read and manipulate CSV files. For example, D3.js can pull in a CSV file and generate an HTML table, or create interactive charts with transitions and interaction - I think you will find that library very useful.
- Easy to import and export to/from spreadsheets.
- Easy to backup - you can store them on a thumb drive or optical media.
- Easy to 'debug' - when you encounter problems with your data you can open your file with a text editor and see exactly what data you have.
- Easy to share via email or in the cloud.