首页 软件开发 代码片段 ( Page 54 )

代码片段 8064

#Perl
纯Perl实现的DES加密算法

#!/usr/bin/perl -w # DES algorithm - reference to http://orlingrabbe.com/des.htm sub itera…

2015-12-14 610

#Perl
从文件中提取字符串

my %hash; while(<>) { chomp(); if( /("(.+?)")/ ) { $hash{$1} = ""; } } foreach (sort…

2015-12-14 343

#Perl
Perl 使用 OLE ADO 操作数据库

#!c:/perl/bin use Win32::OLE; use Win32::OLE::Const 'Microsoft ActiveX Data Objects'; $tab…

2015-12-14 151

#Perl
Perl 读取 word 文档并打印

#!/usr/bin/perl -w use Win32::OLE; $filename = 'wordFile.doc'; $doc = Win32::OLE->GetOb…

2015-12-14 172

#Perl
Perl 使用 AnyDBM 操作 DBM 文件

#!/bin/perl use AnyDBM_File; dbmopen(%states, "statedb", 0666) || die; TRY: { print "state…

2015-12-14 366

#Perl
Perl 获取Windows当前登录的用户名

#!/usr/bin/perl -w use Win32; $username = Win32::LoginName(); print "User name: $username\…

2015-12-14 913

#Perl
Perl 从 HTML 网页中解析出链接

use LWP::Simple; use HTML::LinkExtor; $html = get("http://www.oschina.net"); $link_extor =…

2015-12-14 603

#CSS
css3实现渐变色文字和镂空文字

<style> .text-fill-color2{ font-size:20px; width:950px; margin:0 auto; background:-w…

css
2015-12-14 178

#CSS
CSS伸出式商品分类菜单

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xh…

css
2015-12-14 488

#CSS
文字反向

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/ht…

css
2015-12-14 302

#CSS
手势解锁,移动端支持TouchEvent

$width: 40px; $border: 2px; body { -webkit-user-select: none; user-select: none; cursor: c…

css
2015-12-14 541

#CSS
恢复容器里所有html元素的默认样式

/* 将dcss容器里的所有元素设为默认值 */ .dcss html,.dcss address,.dcss blockquote,.dcss body,.dcss dd,.dc…

css
2015-12-14 707
1 52 53 54 55 56 672