RE: split and grouping in regexp

2006-10-30 Thread bou, hou \(GE Money, consultant\)
>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

Analize Java source file with perl?

2006-10-26 Thread bou, hou \(GE Money, consultant\)
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

RE: count the characters between the matches

2006-10-23 Thread bou, hou \(GE Money, consultant\)
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

RE: Where are These Carriage Returns Coming From?

2006-10-20 Thread bou, hou \(GE Money, consultant\)
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

RE: More Info About $| = 1;

2006-10-18 Thread bou, hou \(GE Money, consultant\)
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