Map vs hashmap
in stl ,no hashMap.only map.but map is different with hashmap.the access to hashmap is linear,but the map is not linear.if the element in the map is 4096,the most access times for finding an elment may 12times access to the map.the first time using the map.so record here.[@more@]
perl dbi oracle
一、安装dbi以及dbd-oracle module 方法一、www.cpan.org搜索下载,安装安装moudule的办法进行安装,windows平台可能需要c语言的编译器。 方法二、ppm ppm>install dbi ....... install dbd-oracle ......(这个过程可能很长,大概需要下载80M的dll)二、编写程序测试是否安装ok[@more@]#!D:/Perl/bin/perl.exe -wuse strict;use warnings;use DBI;my $user="system";my $password="davidwang";my $db="DAVIDWAN";my $dbh=DBI->connect(&qu
放置铃音的程序
#!C:/Perl/bin/perl.exe -w# name:put_ring.pl# func:将平台割接上来的铃音根据12位铃音id 4-3-3-2路径下存放。# author:wangzhihong.china@gmail.com# 补充说明:放在铃音ftp的根路径下# 调用方法:命令行下 put_ring.pl 平台铃音路径,比如 put_ring.pl sz 其中sz是某个平台铃音割接上来的路径use strict;use warnings;use File::Path;use File::Basename;use File::Spec::Win32;use File::Find;use File::Copy;use Cwd;my $target=getcwd;sub wanted{if (-f $File::Find::name){if ($File::Find::name=~/wav/){my $FirstDir=$targe
翻译的perl cookbook 4.5-致力于公益事业
url:http://wiki.perlchina.org/main/show/4.5.+Iterating+Over+an+Array感谢:zhuci 告诉我如何更新翻译后的文章 中午休息时间,翻译了一下,边学习,边翻译.请大家多多指教![@more@]