Feb 18, 2016, 5:53 AM
Re: [Fishhead] Sessions variables
Stick to writing your test scripts, they will be most valuable, but just another thought. If its an auction script with a user system already in place, does it already use a stateful session via CGI::Session, if so then this would likely collide with your new session if both use the default cookie name.
Also, your I/O code inevitably works for a single user, but multiple users would share the same file. You would need a file per user identified by a unique id. This is effectively a session and the process CGI::Session is designed to handle.
Its regularly difficult when modifying a large script, particularly one someone else wrote carelessly. Perl scripts are especially difficult with their vast range of syntax styles. It gets easier the more you do it and hitting problems only helps to develop your knowledge and understanding in areas you would otherwise never cover.
(This post was edited by Zhris on Feb 18, 2016, 5:56 AM)