Главная страница


ru.perl

 
 - RU.PERL ----------------------------------------------------------------------
 From : Alexey Froloff                       2:5020/1437.4  07 Apr 2002  14:11:18
 To : Anton Burkun
 Subject : строка с русскими буквами
 -------------------------------------------------------------------------------- 
 
 
     On 02 Apr 02 22:57 you wrote to Victor Wagner:
 
  AB> впечатление, что он не хочет понимать \b
 
 raorn@hell:2 ~ $ cat > localetest.pl
 #!/usr/bin/perl -w
 
 use strict;
 use locale;
 
 my $aa = "первый второй третий четвертый пятый шестой";
 my $k="третий";
 if ($aa =~ /\b$k\b/) {
     print "Удача!\n";
 }
 ^D
 raorn@hell:2 ~ $ ./localetest.pl
 Удача!
 raorn@hell:2 ~ $ perl -v
 
 This is perl, v5.6.1 built for i386-linux
 
 Copyright 1987-2001, Larry Wall
 
 Perl may be copied only under the terms of either the Artistic License or the
 GNU General Public License, which may be found in the Perl 5 source kit.
 
 Complete documentation for Perl, including FAQ lists, should be found on
 this system using `man perl' or `perldoc perl'.  If you have access to the
 Internet, point your browser at http://www.perl.com/, the Perl Home Page.
 
 raorn@hell:2 ~ $ uname -a
 Linux hell.tower.pp.ru 2.4.18-alt1-sr #1 Tue Mar 5 23:22:45 MSK 2002 i686
 unknown
 raorn@hell:2 ~ $ locale
 LANG=POSIX
 LC_CTYPE=ru_RU.KOI8-R
 LC_NUMERIC=POSIX
 LC_TIME="POSIX"
 LC_COLLATE=ru_RU.KOI8-R
 LC_MONETARY=ru_RU.KOI8-R
 LC_MESSAGES=POSIX
 LC_PAPER=ru_RU.KOI8-R
 LC_NAME=ru_RU.KOI8-R
 LC_ADDRESS=ru_RU.KOI8-R
 LC_TELEPHONE=ru_RU.KOI8-R
 LC_MEASUREMENT=ru_RU.KOI8-R
 LC_IDENTIFICATION=ru_RU.KOI8-R
 LC_ALL=
                                         Regards, Sir Raorn.
 
 ... The railgun is a poor choice for close-in fighting.
 --- GoldED+/LNX 1.1.5-alt0.pre.20011209.2 // Registered Linux User #177282
  * Origin: Hell Fortress // Linux 2.4.18-alt1-sr i686 (2:5020/1437.4)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 строка с русскими буквами   Anton Burkun   31 Mar 2002 22:49:24 
 Re: строка с русскими буквами   Victor Wagner   01 Apr 2002 10:15:16 
 Re^2: строка с русскими буквами   Anton Burkun   02 Apr 2002 22:57:39 
 строка с русскими буквами   Alexey Froloff   07 Apr 2002 14:11:18 
 Re: строка с русскими буквами   Anton Burkun   08 Apr 2002 23:49:03 
Архивное /ru.perl/39283cb01b69.html, оценка 3 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional