in reply to Why my socket is not send and receive data???
That way, $/ remains in default "line mode" for your read from <STDIN> (see perlvar for details on scope with $/).open CONFIGFILE, "config.txt" or die $!; { local $/; $/ = undef; $DATA=<CONFIGFILE>; } print $DATA;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Why my socket is not send and receive data???
by chromatic (Archbishop) on Aug 19, 2006 at 19:08 UTC | |
by choocroot (Friar) on Aug 19, 2006 at 20:02 UTC |