[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] perl regex.... again
- Subject: [ale] perl regex.... again
- From: lists at serioustechnology.com (Geoffrey Myers)
- Date: Mon, 28 Feb 2011 16:28:59 -0500
- In-reply-to: <20110228155721.3ec2af03@zaphod>
- References: <[email protected]> <[email protected]> <[email protected]> <20110228155721.3ec2af03@zaphod>
Pat Regan wrote:
> On Mon, 28 Feb 2011 15:38:37 -0500
> Geoffrey Myers <lists at serioustechnology.com> wrote:
>
>>> Geoffrey,
>>>
>>> if ($line =~ /[^\040-\176]/) {
>>>
>>> print ("Line contains out of range characters\n");
>>>
>>> }
>>>
>>> keith
>> Does not pick up an string that contains an embedded character
>> outside the range. Say:
>>
>> This is a bad ^G line.
>
> His code should print the message for a control-g. Can you post your
> actual code and some test input that fails?
I cut/pasted his code inside my:
while(<>) {
}
the above example is from my test data;
This is a bad ^G line.
>
> Pat
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
--
Until later, Geoffrey
"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson