文件操作 - tcpcat.pl
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/perl-Net-SSLeay/examples/tcpcat.pl
编辑文件内容
#!/usr/bin/perl # tcpcat.pl - Send a message and receive a reply from TCP server. # # Copyright (c) 2003 Sampo Kellomaki <sampo@iki.fi>, All Rights Reserved. # $Id$ # 17.8.2003, created --Sampo $host = 'localhost' unless $host = shift; $port = 443 unless $port = shift; $msg = "get \n\r\n" unless $msg = shift; print "$host $port $msg\n"; use Net::SSLeay qw(tcpcat); print tcpcat($host, $port, $msg); __END__
修改文件时间
将文件时间修改为当前时间的前一年
删除文件