I have a text file from which i read the lines into variables like so: print "\nWhat is the path/filename of your config file? "; $configfile = <STDIN>; chomp($configfile); open (LOAD, "$configfile") || warn "Could not open config file. $!\n"; @config = <LOAD>; $path = $config[0]; $file = $config[1]; $mod = $config[2]; $maxplayers = $config[3]; $map = $config[4]; $other = $config[5];
it appears that when i read the array elements into the scalars, the newline characters are included as well. how can i strip out the newline characters? the text file looks like this: /usr/local/games/hlds hlds cstrike 8 cs_assault +sv_password mypassword -- Matthew Harrison Internet/Network Services Administrator Genstate www.genestate.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]