Форум: "Потрепаться";
Текущий архив: 2002.02.04;
Скачать: [xml.tar.bz2];
ВнизВопрос по Перлу Найти похожие ветки
← →
Kapusto (2001-12-14 09:36) [3]shift наоборот :)
unshift ARRAY,LIST
Does the opposite of a shift. Or the opposite of a push, depending on how you look at it. Prepends list to the front of the array, and returns the new number of elements in the array.
unshift(ARGV, "-e") unless $ARGV[0] =~ /^-/;
Note the LIST is prepended whole, not one element at a time, so the prepended elements stay in the same order. Use reverse to do the reverse.
btw, должно быть
open(IN, "a.txt");
Страницы: 1 вся ветка
Форум: "Потрепаться";
Текущий архив: 2002.02.04;
Скачать: [xml.tar.bz2];
Память: 0.43 MB
Время: 0.005 c