RE: computations with backreferences

2001-06-18 Thread Arthur Cohen
: I know you can : basically stick any function in a regex but I don't : know how. Hence, the code below won't work: To evaluate the right side of a substitution as an expression (rather than a literal string), you stick an e after the last delimiter. :

RE: Regular Expression, matching dates

2001-06-18 Thread Arthur Cohen
: : I need a regular expression that will match dates in the : following format. : : January 01, 2001 : January 15, 2001 : February 01, 2001 : : so on. All dates are spelled out March, April, May... : if ($date_string =~ /(\w+)\s+(\d{1,2}),\s+(\d{4})/) { $month = $1;

RE: grep

2001-06-04 Thread Arthur Cohen
- : From: [EMAIL PROTECTED] : [mailto:[EMAIL PROTECTED]] On Behalf Of : Arthur Cohen : Sent: Monday, June 04, 2001 11:47 AM : To: Tanya Graham; [EMAIL PROTECTED] : Subject: RE: grep : : : Grep is what you want, e.g. : : : : my @filtered = grep { /(\.html|\.asp)$/ } @unfiltered

RE: grep

2001-06-04 Thread Arthur Cohen
: : : if i take the argument from a flag (so i won't be using : @ARGV, but opt_x) : would i still be able to use join? You can do what you want to do, but I'm not sure exactly what you're trying to do. How are you calling the program from the command line, and how are you pulling the

RE: grep

2001-06-04 Thread Arthur Cohen
is executed. then : it disappears. : : my $regex = $opt_e; : : my $regex = s/\s*,\s*/|/g; : : any ideas why? : thanks : tanya : -Original Message- : From: Arthur Cohen [mailto:[EMAIL PROTECTED]] : Sent: Monday, June 04, 2001 12:02 PM : To: Tanya Graham

RE: Version of Perl

2001-05-22 Thread Arthur Cohen
Type perl -v from the command line. --Art : -Original Message- : From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] : Sent: Tuesday, May 22, 2001 4:23 PM : To: [EMAIL PROTECTED] : Subject: Version of Perl : : : I have check out a Perl script on my desktop and it has no :

RE: parsing blackice csv file

2001-05-21 Thread Arthur Cohen
: : i would like to be able to read in a csv file and output it : into html. does anyone have a template type of a script that : could this that would be willing to share it? : It doesn't look like anyone else answered this question, so... CSV should just be a comma-separated-values

RE: parsing blackice csv file

2001-05-21 Thread Arthur Cohen
: my @line = split(/\,/,$line); Not necessarily that simple. There could be fields with commas and/or newlines embedded in them, contained within quotation marks. If the OP's data is that complex he may want to consider using the module to parse his data. If it's just simple data with