From: Avramenko Andrew <liksx@mail.ru> To: community@lists.altlinux.org Subject: [Comm] Задачка на перл Date: Fri, 25 May 2007 19:51:29 +0400 Message-ID: <46570601.9010108@mail.ru> (raw) Доброго всем времени суток! Есть два варианта одной и той же конструкции: my $login = $ENV{"HTTP_AUTH_USER"}; my $login = "$ENV{\"HTTP_AUTH_USER\"}"; Второй вариант работает всегда правильно. А вот первый работает странно: Передаем в качестве HTTP_AUTH_USER a8@a.com, в результате: print $ENV{"HTTP_AUTH_USER"); выдает a8@a.com print $login; выдает a2@a.com Передаем в качестве HTTP_AUTH_USER a9@a.com, в результате: print $ENV{"HTTP_AUTH_USER"); выдает a9@a.com print $login; выдает a3@a.com, иногда a3@a.com Передаем в качестве HTTP_AUTH_USER a8@a.com, в результате: print $ENV{"HTTP_AUTH_USER"); выдает a8@a.com print $login; выдает a3@a.com, иногда a4@a.com Передаем в качестве HTTP_AUTH_USER a8@a.com, в результате: print $ENV{"HTTP_AUTH_USER"); выдает a8@a.com print $login; выдает a3@a.com, иногда a4@a.com И т.д. Никакой логики вообще не могу найти между всеми этими значениями. Хотелось бы узнать чем второе присваивание правильнее чем первое? Заранее спасибо! -- С уважением, Андрей
next reply other threads:[~2007-05-25 15:51 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-05-25 15:51 Avramenko Andrew [this message] 2007-05-26 10:51 ` ABATAPA
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=46570601.9010108@mail.ru \ --to=liksx@mail.ru \ --cc=community@lists.altlinux.org \ /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