: 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
:
: 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;
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.
: 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(\
: 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
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
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
:
:
: 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
:
:
: 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
:
:
:
: -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
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
:
: 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
:
: 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
13 matches
Mail list logo