RE: help using ~s/(\w+)/\L$1/g ; ~s/(\w+)/\u$1/g ;

2001-07-05 Thread Arthur Cohen
: but this also change the letters which are after a special : caracter i.e. if : the $name variable has: : computación : it ends so: : ComputacióN : when I only want to get : Computación : Check out perldoc perllocale or http://www.perldoc.com/perl5.6/pod/perllocale.html . Tha

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: computations with backreferences

2001-06-18 Thread Arthur Cohen
PS: See perlre and perlop, aka http://www.perl.com/pub/doc/manual/html/pod/perlop.html and http://www.perl.com/pub/doc/manual/html/pod/perlre.html for tons more info. --Art ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.

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. : $_=~s/^[A-Z]\t(\d{1,2})\t.*\t(\

RE: executing a subroutine in a module

2001-06-13 Thread Arthur Cohen
: Is it possible to execute just a subroutine from the commandline? I'm : running apache on a unix box. I know you can execute a : script from the : command line however, I have some modules I have written with : many stand : alone methods and I'm only wanting to check the return val

RE: 'Reversing an array'

2001-06-11 Thread Arthur Cohen
perldoc -f reverse --Art : -Original Message- : From: Roee Rubin [mailto:[EMAIL PROTECTED]] : Sent: Monday, June 11, 2001 2:36 PM : To: Perl-Win32-Users : Subject: 'Reversing an array' : : : Hello, : : I have an array with value of 1-10. : : What is the fastest way to

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: grep

2001-06-04 Thread Arthur Cohen
: : : this is how it is called: : AddHeader.pl -f [directory name] -e [extension list] : this tells the program to add a header to the files with extensions : "extension list" in "directory name". I would actually : prefer to have them : comma separated, so can you explain how to replac

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 c

RE: grep

2001-06-04 Thread Arthur Cohen
: : : : -Original Message- : 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 = gre

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
: 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

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-val