ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Olexander Chernetskyy" <sp_archer@meta.ua>
To: "Community@lists.altlinux.org" <Community@lists.altlinux.org>
Subject: Re: [Comm] срочно нужна помощь bash, awk или perl
Date: Thu, 8 Dec 2011 15:34:13 +0200 (EEST)
Message-ID: <42523.194.44.242.194.1323351253.metamail@webmail.meta.ua> (raw)
In-Reply-To: <CAHRK1yPgQoVYrsZt95j4t_c8bGfCHKZ3Wva73M4TT=kHfhQwpQ@mail.gmail.com>

O! Теперь заработало.
Вроде-бы также делал...
Наверное какую-то  запятую где-то пропустил.
Я перл только начал учить.

Но данная задача была реальная и срочная.
Еще раз огромное спасибо всем!

> 8 декабря 2011 г. 17:05 пользователь Olexander Chernetskyy написал:
>> Спасибо.
>> Нужна еще консультация.
>> Поле 8 позиций. Должно быть заполнено лидирующими нулями.
>> Я попробовал sprintf использовать, но перл сказал на нее "Undefined
>> subroutine"
>
> Не может быть. Проверил, даже на древнем 5.8.6 есть. То есть нужно
> заменить строчку
>
> $tokens[4] = hex($tokens[4]);
>
> на
>
>  $tokens[4] = sprintf("%08d", hex($tokens[4]));
>
>>
>> Нужно наверное use что-то? Только не смог найти что. Подскажите.
>>
>
> --
> С уважением,
> Владимир.
>


-- 
Best regards,
ArCher
Jabber: antonio_gaudi{at}jabber.ru



  reply	other threads:[~2011-12-08 13:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-08 11:38 Olexander Chernetskyy
2011-12-08 12:01 ` Vladimir Didenko
2011-12-08 13:05   ` Olexander Chernetskyy
2011-12-08 13:08     ` Michael Shigorin
2011-12-08 13:16       ` Olexander Chernetskyy
2011-12-08 13:20     ` Vladimir Didenko
2011-12-08 13:34       ` Olexander Chernetskyy [this message]
2011-12-08 12:18 ` Vladimir Karpinsky

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=42523.194.44.242.194.1323351253.metamail@webmail.meta.ua \
    --to=sp_archer@meta.ua \
    --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