in reply to Re: problems with reading data from cfg file
in thread problems with reading data from cfg file
If the file was written on win32 (where $\ defaults to \n\r) and then uploaded to unix (where $\ defaults to \n), chomp only catches the \n and misses the \r.
So you can do this:
foreach ( @config_pairs ) { chomp; s/\r//; # more stuff }
Jasmine
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: problems with reading data from cfg file
by pitbull3000 (Beadle) on Sep 10, 2001 at 11:32 UTC |