Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1621565
  • 博文数量: 126
  • 博客积分: 1541
  • 博客等级: 上尉
  • 技术积分: 1914
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-20 11:14
文章分类

全部博文(126)

文章存档

2014年(21)

2013年(42)

2012年(63)

发布时间:2012-12-27 17:24:43

yangfeng@sbuild:~/perl$ cat re.pl #!/usr/bin/perl@t = qw{ e666[gx].mk, zprojects/e666[gx]/makefile.mk,e666/[op]/makefile.mk,e666[gx]/makefile.mk};foreach $mm ( @t ){    print "$mm\n" if ($mm =~m/.*\/(\w+)(\[\w+.*\])?\/(\w+).mk/);}yangfeng@sbuild:~/perl$ ./re.pl zprojects/e666[gx]......【阅读全文】

阅读(1610) | 评论(0) | 转发(0)

发布时间:2012-12-25 11:29:08

yangfeng@sbuild:~/makefile/test1$ cat test.c#include"test.h"#include"test1.h"#include"test2.h"yangfeng@sbuild:~/makefile/test1$ cat test.h #ifdef androidvoid printf_android(void){printf("android\n");}#endifyangfeng@sbuild:~/makefile/test1$ cat test1.h #ifdef android1void printf_android1(vo......【阅读全文】

阅读(4579) | 评论(0) | 转发(0)

发布时间:2012-12-21 21:36:01

yangfeng@sbuild:~/perl$ cat hash.pl #!/usr/bin/perlmy %hash=("a"=>1,"b"=>2,"c"=>3);my @k=keys%hash;my @v=values%hash;print "@k\n";print "@v\n";yangfeng@sbuild:~/perl$ ./hash.pl   c a b3 1 2......【阅读全文】

阅读(1001) | 评论(0) | 转发(0)

发布时间:2012-12-21 14:37:26

在perl的程序当中,有时候会用到当前的系统路径。perl中获取当前李靖有两种方法:1、使用CWD包use Cwd;print getcwd;2、使用环境变量print $ENV{'PWD'}我更倾向于使用环境变量,这样不会引入额外的包3.使用shell命令          print system(“pwd”);......【阅读全文】

阅读(1053) | 评论(0) | 转发(0)

发布时间:2012-12-21 11:33:54

yangfeng@yangfeng-desktop:~/RL75_gb2_master$ ./makeMtk e610[cfzz] n**********checking Env************ Your building environment is OK The detail information is in "checkenv.log"!*************************************************2012/12/21 11:03:48 custgening...        &n......【阅读全文】

阅读(2760) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册