Re: it told me that Can't open perl script " hello.p1" No such file or directory

2011-05-23 Thread Thomas Lingmann
Hi, you saved your script as 'perl.p1' but you run it as 'hello.p1'. hth * Gang Cheng [23.05.2011 09:30]: > hi, > > I instaled my perl under the e:\r_software\perl. > I wrote a hello world programme as below > > #! /usr/bin/perl > print “Hello,word!\n”; > > and save it under e:\ as perl.

Re: new here

2011-05-06 Thread Thomas Lingmann
Hi, try something like my @str = ( "test [0.4\\9.0]" ); foreach (@str) { if ( ($leaf1, $leaf2) = $_ =~ m{ (\d+\.\d)\\(\d+\.\d) }x ) { print $leaf1, "\n"; print $leaf2, "\n"; } } -- Thomas * wolken.f...@web.de [06.05.2011 20:16]: > Hi all, > > I´m new here and