From: Sergey Degtyaryov <maga@globetravel.spb.ru>
To: cornet <mandrake-russian@altlinux.ru>
Subject: [mdk-re] Re: [mdk-re] Обратно perl
Date: Fri Jul 20 12:59:11 2001
Message-ID: <2551.010720@globetravel.spb.ru> (raw)
In-Reply-To: <3B57F32F.775AB105@zmail.ru>
Доброго времени суток, cornet,
20.07.2001 в 13:00 Вы сказали буквально следующее:
c> В том то и дело, что нет! В регулярных выражениях (по крайней
c> мере в perl) символ $ обозначает конец строки, а не начало имени
c> переменной. Такой код не работает - уже пробовал - он всегда дает
c> истину вне зависимости от содержимого $_ лишь бы она была
c> определена.
Неправда Ваша все же.
Попробуйте
$string = '00120';
for (1..5)
{
($string =~ /^.*$_.*$/) ? print "Found\n" : print "Not found\n";
}
$ - конец строки, $_ - переменная.
Rgds, maga
next prev parent reply other threads:[~2001-07-20 12:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-20 11:35 cornet
2001-07-20 11:55 ` [mdk-re] " Sergey Degtyaryov
2001-07-20 12:23 ` cornet
2001-07-20 12:33 ` Sergey Degtyaryov
2001-07-20 12:46 ` cornet
2001-07-20 12:59 ` Sergey Degtyaryov [this message]
2001-07-20 13:00 ` Artem K. Jouravsky
2001-07-20 13:11 ` cornet
2001-07-21 0:28 ` [mdk-re] " Mikhail Zabaluev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2551.010720@globetravel.spb.ru \
--to=maga@globetravel.spb.ru \
--cc=mandrake-russian@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git