ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Sergey <a_s_y@sama.ru>
To: "ALT Linux sysadmins' discussion" <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Отправка SMS через GSM-модем: как выбрать кодировку ?
Date: Sun, 3 Apr 2016 13:02:26 +0400
Message-ID: <201604031302.26327.a_s_y@sama.ru> (raw)
In-Reply-To: <201604031106.55654@ruslandh>

On Sunday 03 April 2016, Хихин Руслан wrote:

> А считайте всё в массив и сравните, то что выдаёте и что читаете. 
> Кстати, как вы перевод строки обозначаете?

Да сравнил уже. Собственно говоря, там сравнивать нечего особо:

    my $message="";
    my $n="";

    while (<STDIN>) {
        chomp;
        $message=$message . $n . $_ ;
        $n="\n";
    }

В общем, переделал на запись собщения в файл и cat. Работает.
С SMS::Send, может, потом поковыряюсь.

-- 
С уважением, Сергей
a_s_y@sama.ru


  reply	other threads:[~2016-04-03  9:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-02 20:38 Sergey
2016-04-02 21:24 ` Anton Gorlov
2016-04-02 21:30   ` Хихин Руслан
2016-04-03  7:58     ` Sergey
2016-04-03  7:28   ` Sergey
2016-04-03  7:57 ` Sergey
2016-04-03  8:06   ` Хихин Руслан
2016-04-03  9:02     ` Sergey [this message]
2016-04-04  6:18 ` Sergey

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=201604031302.26327.a_s_y@sama.ru \
    --to=a_s_y@sama.ru \
    --cc=sysadmins@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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git