$foo =~ s/\W*/_/g;
http://www.oreilly.com/catalog/regex/
-Original Message-
From: Octavian Rasnita [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 3:06 AM
To: [EMAIL PROTECTED]
Subject: Replacing with Regular expressions
Hi all,
I have a path to a file name.
Hi all,
I have a path to a file name. (In a script for uploading files).
I want to allow only the a-z, A-Z, and 0-9 characters and I want to replace
all others with _ when writing the file to the server.
Can you tell me what would be this regular expression?
Thank you.
Teddy,
[EMAIL PROTECTED
> Does PINE do anything well?
Wait! I'm thinking. Is this a trick question? ;)
Scot R.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 5/24/2002
--
To unsubscribe, e
Scot, et al --
...and then Scot Robnett said...
%
% I don't personally share the 'HTML e-mail is evil' philosophy. And even if
Fair enough.
% you're in the ascii-only camp, HTML mail isn't going anywhere anytime soon.
Unfortunate, I think.
% People will ask how to generate and parse it, an
I don't personally share the 'HTML e-mail is evil' philosophy. And even if
you're in the ascii-only camp, HTML mail isn't going anywhere anytime soon.
People will ask how to generate and parse it, and there are plenty of Perl
tools and modules to do so.
I see that it was said "only a really cool
Fred --
...and then Fred Sahakian said...
%
% What am doing wrong? Im try to send an e-mail that will appear as formatted HTML,
Im missing something but dont know what. In my example below I have a hyperlink which
I would like to appear as HTML and a font color, but they appear in the e-mail
Camilo --
...and then Camilo Gonzalez said...
%
% David,
%
% I admire your principles. This is something that has come up before and
Heh :-)
% after some trial and error, what I proposed to him seemed to work. I too
Well, that's good. I'm glad he's managed to get something out the door.
I
David,
I admire your principles. This is something that has come up before and
after some trial and error, what I proposed to him seemed to work. I too
feel HTML email is evil but some of us are stuck being prostitutes to keep
the wolves from our door.
-Original Message-
From: David T-G
Fred, Camilo, et al --
...and then Camilo Gonzalez said...
%
% Fred,
%
% Thank Jah this problem was recently successfully solved! Try this:
%
% open(MAIL,"|$mailprog -t");
% print MAIL "Content-Type: text/html\n";
% print MAIL "To: $comm\@courts.state.ny.us\n";
...
Note that, although he's po
print the contents of a file to the screenfrom a terminal
cat [filename]
Camilo Gonzalez wrote:
> I see the word 'cat' being used an awful lot lately here and have
> encountered it in other readings. What is cat and what is it used for?
>
> #!/usr/local/bin/perl
> print <<' EOF'
>
Fred,
Thank Jah this problem was recently successfully solved! Try this:
open(MAIL,"|$mailprog -t");
print MAIL "Content-Type: text/html\n";
print MAIL "To: $comm\@courts.state.ny.us\n";
print MAIL "From: fsahakia\
@courts.state.ny.us\n";
print MAIL "Subject: Forwarded \n\n";
print MAIL "This pe
Hi I am trying to write a perl cgi script that interfaces with Majordomo, I
would like to create a mailing list in Majordomo programatically (i.e. have
Perl read a through some email addresses strored in a mysql database and
feed that to majordomo) and then have majordomo email everyone on the lis
What am doing wrong? Im try to send an e-mail that will appear as formatted HTML, Im
missing something but dont know what. In my example below I have a hyperlink which I
would like to appear as HTML and a font color, but they appear in the e-mail as raw
HTML, what am I leaving out? A Mime?:
Camilo, et al --
...and then Camilo Gonzalez said...
%
% David,
%
% Since there are a lot of newbies here, can you please enumerate on the pains
% and differences between both FTPs and what SCP is?
Oh, dear. Now I've stepped in it :-)
In brief, and without attempting to cover *all* of the d
David,
Since there are a lot of newbies here, can you please enumerate on the pains
and differences between both FTPs and what SCP is?
-Original Message-
From: David T-G [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 9:17 AM
To: [EMAIL PROTECTED]
Cc: Camilo Gonzalez
Subject: Re:
Camilo, et al --
...and then Camilo Gonzalez said...
%
% Why not just set up a FTP site? I assume the people who want to upload those
Well, anon ftp has its own pains, as does non-anon ftp to some guest
account... It's good to move away from ftp to anonymous scp or http
puts or such when you c
cat - concatenate files and print on the standard output
> -Original Message-
> From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 03, 2002 9:55 AM
> To: '[EMAIL PROTECTED]'
> Subject: What is cat?
>
>
> I see the word 'cat' being used an awful lot lately here and
Camilo,
Basically, it's a UNIX function that squeezes files together. It is short
for "concatenate." Simple example:
cat file1 file2 > file3
Use your manpage for further info:
man cat
You can also use it to view the contents of a file, similar to 'more' or
'less.' Example:
> -Original Message-
> From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 03, 2002 9:55 AM
> To: '[EMAIL PROTECTED]'
> Subject: What is cat?
>
>
> I see the word 'cat' being used an awful lot lately here and have
> encountered it in other readings. What is cat and what
Type:
man cat
Cheers,
Kevin
On Mon, Jun 03, 2002 at 08:54:34AM -0500, Camilo Gonzalez
([EMAIL PROTECTED]) said something similar to:
> I see the word 'cat' being used an awful lot lately here and have
> encountered it in other readings. What is cat and what is it used for?
>
> #!/usr/local/bin
I see the word 'cat' being used an awful lot lately here and have
encountered it in other readings. What is cat and what is it used for?
#!/usr/local/bin/perl
print <<' EOF'
Camilo Gonzalez
Web Developer
Taylor Johnson Associates
[EMAIL PROTECT
Why not just set up a FTP site? I assume the people who want to upload those
large files will be familiar with FTP.
-Original Message-
From: Octavian Rasnita [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 02, 2002 11:55 AM
To: [EMAIL PROTECTED]
Subject: The size of the uploaded file
Hi a
'htpasswd' is an Apache web server function rather than a Perl function. It
originated on UNIX but is also available for Win32. On Win32, usernames and
passwords are limited to 255 characters. I'm not sure that's really a limit
to be concerned about though...when was the last time you saw a
255-ch
> -Original Message-
> From: Hytham Shehab [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 01, 2001 4:05 AM
> To: [EMAIL PROTECTED]
> Subject: creating a session
>
>
> hi guys,
> i got the cgi::session module, but it is a front end to
> Apache::Session
> which is not available for w
> -Original Message-
> From: Octavian Rasnita [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 31, 2002 4:47 AM
> To: [EMAIL PROTECTED]
> Subject: Is it a difference?
>
>
> Hi all,
>
> I've seen these 2 types of defining the CGI object and both work.
>
> my $q = new CGI;
> my $q = CGI ->
Try this:
open(FILE, "/home/file.txt") or die "Can't open file\n";
while(){
if (/(\d+)\s+(\w+).+?$/){
print "$1\t$2\n";
}
}
This implies that your line have numbers, then a space, then a word, then anything
else, and you just want the numbers, then a
I found out what the problem is. If you write
$q->table({-border=>undef},
#caption('When Should You Eat Your Vegetables?'),
$q->Tr({-align=>CENTER,-valign=>TOP},
[
$q->th(['Vegetable', 'Breakfast','Lunch','Dinner']),
$q->td(['Tomatoes' , 'no'
27 matches
Mail list logo