On Jun 11, 11:05 am, [EMAIL PROTECTED] (Paul Archer) wrote:
> The reason this works is that when you read from STDIN, you are getting the
> newline from when the user of the program hits return. Using '=~' is
> implying a 'match', which will match the string/regexp supplied within the
> variable's
On Jun 11, 9:23 am, [EMAIL PROTECTED] (Amrita Roy) wrote:
> Actually i m running a process using perl script.so i want to do that if i
> press ESC from the keyboard it will come out of the loop n comes out of the
> function.I am trying to read the esc character using "\e"but it is not
> responding.
The reason this works is that when you read from STDIN, you are getting the
newline from when the user of the program hits return. Using '=~' is
implying a 'match', which will match the string/regexp supplied within the
variable's value. 'eq' means the two strings have to be exactly equal to
ea
hi amrita,
use if($var1 =~ '\e') inplace of if(var1 eq '\e')
On 6/11/07, Amrita Roy <[EMAIL PROTECTED]> wrote:
Hello,
Actually i m running a process using perl script.so i want to do that if i
press ESC from the keyboard it will come out of the loop n comes out of the
function.I am trying to
Hello,
Actually i m running a process using perl script.so i want to do that if i
press ESC from the keyboard it will come out of the loop n comes out of the
function.I am trying to read the esc character using "\e"but it is not
responding.I have even tried with hex (1B) value of esc charcter but