Главная страница


ru.perl

 
 - RU.PERL ----------------------------------------------------------------------
 From : Alexey Matvienko                     2:6083/333     28 Dec 2003  05:29:48
 To : All
 Subject : <без заголовка>
 -------------------------------------------------------------------------------- 
 
 
 почему не pаботает?
 как пpовеpить текстовый или нет файл?
 
 if ( -T "/some/path/file.txt" )
 {
  print "Text file";
 } else {
  print "binary file";
 }
 
 та же фигня и пpи использовании -f, -B
 > begin of |perl -v
 
 This is perl, v5.8.0 built for i386-linux-thread-multi
 
 Copyright 1987-2002, Larry Wall
 
 Perl may be copied only under the terms of either the Artistic License or the
 GNU General Public License, which may be found in the Perl 5 source kit.
 
 Complete documentation for Perl, including FAQ lists, should be found on
 this system using `man perl' or `perldoc perl'.  If you have access to the
 Internet, point your browser at http://www.perl.com/, the Perl Home Page.
 
 > end   of |perl -v
 
 Bye. Good Bye.
 ... Registered Linux User #319529 ...
 --- *[* GoldED+/LNX 1.1.5-030809 *][* hpt/lnx 1.9.0-cur 14-07-03 *]* ---
  * Origin: Be cool (2:6083/333)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 <без заголовка>   Alexey Matvienko   28 Dec 2003 05:29:48 
 Re: <none>   Artem Chuprina   28 Dec 2003 22:01:25 
 <none>   Alexey Matvienko   29 Dec 2003 05:52:18 
 Re: <none>   Artem Chuprina   29 Dec 2003 19:32:44 
Архивное /ru.perl/22953fee08de.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional