>my ( $, $mm, $dd ) = split /(-|\/)/, $mmdd;
my ( $, $mm, $dd ) = split /-|\//, $mmdd;
with this it works.
-Original Message-
From: Daniel Kasak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 31, 2006 10:22 AM
To: beginners@perl.org
Subject: split and grouping in regexp
hello, all
I want to get the Class name of .java file with perl ,
How can I do it ? I think it is difficult to result the java comment .
For Example
a java file named AAA.java
/* author : John Smith */
// comment
public class ClassA {
/* */
//comment
public static void
How about this .
$str = 'syhk...yes...uhg;ka=...yes...yiealg.yes...ghe;a...yes...';
$count = $str;
$count = $count =~ s/yes//g;
print "$count\n"
-Original Message-
From: zhihua li [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 24, 2006 10:05 AM
To: beginners@perl.org
Subject: c
under is the result of the source.
chomp $name;
just delete the CR/LF of the row What is your name? peng CR/LF
What is your name? peng
Content-Type: text/html; charset=ISO-8859-1
http://www.w3.org/TR/xht
I am using EPIC too. But when I open the *.pm file with utf-8 , eclipse always
show out of system
virtual memory error,and then I have to shut down the eclipse. who can tell me
why?
-Original Message-
From: Chris Share [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 19, 2006 7:54 AM
To