Tags » Perl

Perl vs. Python RegEx Shootout

I am constantly told that Perl has much better regex performance than python. When I ask people how they know they answer with “everybody knows that” or “because it’s native” or I am shown some obscure benchmarks whcih seem to test anything but regex performance (hardcoded regex vs interpolated etc.). 486 more words

Python

New Ham::Resources:Utils release 0.04

The new release of Ham::Reousrces::Utils is here.

In this version I fixed some issue with the position of the Sun: 42 more words

Perl

Release测试的Perl脚本

   1: #! /usr/bin/perl -w

   2: use strict;
   3: use List::Util qw(shuffle);
   4:  
   5: sub fulltest    #normal, every image is syned to "m4_image.bin"
   6: {
   7:     my $demo = ""; 234 more words
PERL

Perl生成绝对路径集合

从工程文件中提取的路径集合的文本类似于以下

d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../../CMSIS/Include

d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../../devices
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../../platform/drivers
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/..
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../../devices/MIMX8QM6_M4_0/scfw_api
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../../devices/MIMX8QM6_M4_0/scfw_api/config/mx8qm
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../../devices/MIMX8QM6_M4_0/scfw_api/config/mx8qm/CORES
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../..
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../../platform/drivers/lpuart
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../../platform/drivers/common
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../../platform/utilities/debug_console
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../../devices/MIMX8QM6_M4_0
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../../devices/MIMX8QM6_M4_0/gcc/startup_MIMX8QM6_M4_0.S
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../../platform/drivers/lpuart/fsl_lpuart.h
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../../platform/drivers/lpuart/fsl_lpuart.c
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../../../../src/demo_apps/hello_world/hello_world.c
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../pin_mux.c
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../pin_mux.h
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../hardware_init.c
d:/Workspace/mcu-sdk-2.0/boards/zebu_imx8qm_m4_0/demo_apps/hello_world/armgcc/../app.h

想对其做一定的处理,目的在于消除掉双点号(父目录),可以采用Perl里的abs_path,脚本如下

   1: #! /usr/bin/perl -w…
83 more words

PERL

I wanna be a Perl script writer...

Paperback writer, paperback writer.
Dear Sir or Madam, will you read my book?
It took me years to write, will you take a look?
It’s based on a novel by a man named Lear, 299 more words

Perl

Membuat Program Text Mining PERL

Hai! What’s up guys! Cie yang lagi belajar bahasa pemrograman Perl.

Sebelum kita memahami program text miningnya mari kita ulas sedikit mengenai apa itu text mining. 369 more words

Mining