I'm writing a simple cgi script that takes the user name from the url and outputs it in the html.
For example the url: blar...blar/cgi-bin/sis_home.cgi?un=mustoj Here is my script which works fine: #!/usr/local/bin/perl # script name: sis_home.cgi use CGI qw(:standard); my $q = new CGI; my $username = $q->param("un"); #print the html print "Content-type: text/html\n\n"; print <<__HTML__; <HTML> <HEAD> <TITLE> Simple Program </TITLE> </HEAD> <BODY> User Name = $username </BODY> </HTML> __HTML__ This works fine and i get the output: User Name = mustoj in the browser, but as soon as i add a file handle to obtian the userid from the username it stops working, nothing is displayed. open (FH,"hl_of_users.txt") || &CgiDie("Can't open user file!"); I will be pereforming various actions on this file handle but at the moment i can't do anything because as soon as i add this line i get a blank page returned. Has anyone come across this problem before? Any help would be much appreciated, thanks in advance. Regards, Jonathan Musto BT Ignite Solutions Telephone - 0113 237 3277 Fax - 0113 244 1413 E-mail - [EMAIL PROTECTED] http://www.technet.bt.com/sit/public British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 1800000 This electronic message contains information from British Telecommunications plc which may be privileged or confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the numbers or address above) immediately. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]