Hello,
I only knew of one way to do them: s///
But japhy once answered me with this format: s{}{}
Another guy said you can use exclamation points? I'm assuming: s!!!
I've tried some other formats with brackets, parenthesis, etc. Nothing else
works.
What other formats will work?
Thanks!
Craig Inman wrote:
>
> Trying to get this script to 'claimsubmit' ONLY if the system call
> returns STDOUT, but I'm having a little trouble getting my script to
> verify that and act accordingly.
Do you mean you want to capture the output from claimsubmit? Use
back-quotes (``) or qx//.
> open
Hi everyone,
I am running a script on an Intranet. It is called when the submit button of a
form is clicked. It takes all the items in the form, puts them into a different form,
and emails that form away. This all works, but I get a server error page after I hit
the submit button. Any id
>I'm using the email address are a beginning password therefore
>code below
>
>$password=~s/@/\_/g; ##removes"@"
>$password=~s/\./\_/g; ##removes"."
>
>##?
>$password=~s/[^a-z^A-Z^0-9]/\-/g;##check for a-z, A-Z, 1-0 ???
>##
>
>is th
Hi: I am running cpanv1.59, and with root.
I notice that there are multiple failures at make install
Won't install without force
When I run perl -MCPAN -e shell, do I want to start using some command that
forces all installs? Or, is there a better way to approach using cpan for
installin
- Original Message -
From: "Luinrandir Hernson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 19, 2002 7:20 PM
Subject: Re: help!!!trying to match password
so don't use the m/
and use a \b on both sides of "bob" in this case...
I will research this further to under
guess what I found!!! and it works (mad scientist laugh)
$password=~tr/A-Z/a-z/;##changes everything to lowercase
$password=~tr/a-z0-9/_/c;
instead of
##$password=~s/@/\_/g; ##removes"@"
##$password=~s/\./\_/g; ##removes"."
Trying to get this script to 'claimsubmit' ONLY if the system call
returns STDOUT, but I'm having a little trouble getting my script to
verify that and act accordingly.
opendir DIRH, "$unknown" or die "Can't open: $!\n";
foreach my $files (sort readdir DIRH)
{
my @claims = (grep(!/^\.{1,2}$
so don't use the m/
and use a \b on both sides of "bob" in this case...
I will research this further to understand.
is there a name for this situation??? \b
thanks..lou
- Original Message -
From: Leon
To: [EMAIL PROTECTED]
Sent: Sunday, January 20, 2002 2:31 PM
Subject: Re: h
- Original Message -
From: Luinrandir Hernson
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, January 19, 2002 10:06 PM
Subject: more help!!!trying to match password
Thanks Jeff . I had tried $password eq /bob/ but your way works just fine.
Now for secur
Thanks Jeff . I had tried $password eq /bob/ but your way works just fine.
Now for security reasons I want to check the variable to only alphanumeric charecters
a-z A-Z 0-9 and the underscore _
I'm using the email address are a beginning password therefore
code below
$password=~s/@/\_/g;
Like what Jeff says, use eq would be a better option.
You may wish to know that "$password =~m/bob/" matches any of these :-
anybob bobby anybobbie ... i.e so long as it sees a bob, it match. If you
wish to match only bob and not bobby or abobby, then you may have to use
border like this ~/\bbob
On Jan 19, Luinrandir Hernson said:
>Just how do I match the input exactly
>bob
>to just
>bob
Use 'eq'.
if ($password eq 'bob') { ... }
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
I have managed to get this far.
I've stripped down
read(STDIN,$buffer,$ENV{'CONTENT_LENGTH'});
to the actual input, in this case
bob
and it works but so does bob123 , bobbies and bobs_a_bum etc...
Just how do I match the input exactly
bob
to just
bob
???
thanks in advance
code below
Examples can be found on the CPAN page:
http://search.cpan.org/doc/ACALPINI/Win32-Sound-0.45/Sound.pm
-Brian
> -Original Message-
> From: Joe Slaven [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 19, 2002 4:44 PM
> To: [EMAIL PROTECTED]
> Subject: Using Win32::sound module
>
> Wo
Would anyone please provide an example of how to use Win32::Sound module to
play and stop a sound.wav file?
The Synopsis uses Win32::Sound::Play("file.wav"); but I am not sure how
to assign this to a variable, and then make it play the sound.
My kind regards,
Joe
email: [EMAIL PROTECTED]
man perlsyn
On Sat, 19 Jan 2002, [gb2312] yun yun wrote:
> I found in perl samples many strange signs, I'm really
> confused by them and the study process is seriousl
> blocked, would you like to recommend some good method
> to pass this basic step? some quick lookup or some
> common-used cmd? T
Yun yun wrote:
>
> What is the meanings of the following two expressions?
> 1.$var1{$var2}
This is the value from the hash %var1 using the key $var2
> 2.$var1($var2)
$ perl -MO=Deparse -e'$var1($var2)'
syntax error at -e line 1, near "$var1("
This is a syntax error.
John
--
use Perl;
prog
On Jan 19, Jonathan E. Paton said:
>/^(?=kayak)(?=San Juan Islands)/
No, that cannot possibly match. You mean:
/^(?=.*kayak)(?=.*San Juan Islands)/
>/^(?=vegetable)(?!brussel sprout)/
Ditto.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brothe
On Jan 19, Andrew Koper said:
>I am working on an org chart app. It is easy to loop through an
>employee list and get an array of everyone who reports to a given user
>ID (say, a vice president), but my logic breaks when I try and loop
>through the list again and get arrays of everyone who repor
> What does $ stand for in the following statement?
>
> print"$_\t", "*" x $n, "\n";
>
$_ is the default input and pattern-searching space.
Snipped from man perlvar:
PERLVAR(1) Perl Programmers Reference Guide PERLVAR(1)
NAME
perlvar - Perl predefined variables
DESCRIPT
> Can somebody help me translate these boolean expression
> to regular expression?
I smell homework... so you've been sussed! I'll help you
get started, but you'd better do the rest yourself.
Documentation at:
perldoc perlre
> kayak AND "San Juan Islands"
/kayak/ and /San Juan Islands/
OR
On Jan 19, Naveen Parmar said:
>What does $ stand for in the following statement?
>
>print"$_\t", "*" x $n, "\n";
$_ is a variable. It's the default variable, for things like loops and
whatnot.
perldoc perlvar
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RP
What does $ stand for in the following statement?
print"$_\t", "*" x $n, "\n";
TIA,
- NP
_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
To unsubscribe, e-mail: [
> -Original Message-
> From: yun yun [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 19, 2002 10:08 AM
> To: [EMAIL PROTECTED]
> Subject: $_ in hash datatype?
>
>
> if var is a hash type, i.e. %var,
> then what's the meaning of $_, and $var{$_}?
> Thanks!
The value inside the brace
Can somebody help me translate these boolean expression to regular expression?
kayak AND "San Juan Islands
Digital Equipment Corporation" OR DEC
Louis Near Monier
vegetable AND NOT "brussel sprout
gold OR silver AND platinum = gold OR (silver and platinum)
(gold OR silver) AND platinum
NOT gold
I am working on an org chart app. It is easy to loop through an
employee list and get an array of everyone who reports to a given user
ID (say, a vice president), but my logic breaks when I try and loop
through the list again and get arrays of everyone who reports to the
managers in the initial a
> If var is a hash type, i.e. %var, then what is
> the meaning of $_, and $var{$_}?
__DESCRIPTION__
$_ is the default variable, used when you are too lazy to
create one of your own and like clean looking code.
__EXAMPLE__
foreach (1..5) {
print "$_\n";
}
Is the same as:
foreach $_ (1..5) {
> I found in perl samples many strange signs, I'm really
> confused by them and the study process is seriously
> blocked, would you like to recommend some good method
> to pass this basic step? some quick lookup or some
> common-used cmd? Thanks a lot!
Yeah, try:
www.perldoc.com
or:
perldoc pe
I found in perl samples many strange signs, I'm really
confused by them and the study process is seriousl
blocked, would you like to recommend some good method
to pass this basic step? some quick lookup or some
common-used cmd? Thanks a lot!
___
if var is a hash type, i.e. %var,
then what's the meaning of $_, and $var{$_}?
Thanks!
_
Do You Yahoo!? µÇ¼Ãâ·ÑÑÅ»¢µçÓÊ! http://mail.yahoo.com.cn
ÎÞÁÄ£¿ÓôÃÆ£¿¸ßÐË£¿Ã»ÀíÓÉ£¿¶¼À´ÁÄÌì°É£¡¡ª¡ª
ÑÅ»¢È«ÐÂÁÄÌìÊÒ! http://cn.chat.yahoo.com/c/roomli
Hi Joshua,
* Joshua Colson <[EMAIL PROTECTED]> wrote:
> Can someone help me, I need to retrieve files with spaces in them, and
> Net::FTP errors out everytime.
>
> I've tried embedding quotes, not storing name in variable, quoting/not
> quoting variables. I'm at a loss.
>
> I thought that may
Would anyone please provide an example of how to use Win32::Sound module to
play and stop a sound.wav file?
The Synopsis uses Win32::Sound::Play("file.wav"); but I am not sure how
to assign this to a variable, and then make it play the sound.
My kind regards,
Joe
email: [EMAIL PROTECTED]
> What is the meanings of the following two expressions?
> 1.$var1{$var2}
> 2.$var1($var2)
Err... they look rather similar, don't they? :P
Basically, it works a little like:
my %hash = ( "key1" => "value1",
"key2" => "value2",
"key3" => "value3"
);
print $
Can someone have a look at
http://www.voelspriet.nl/googledocumentenzoeker.htm
I want to use ONE search box - not five, as I do now. Can this be done?
Henk van Ess
www.voelspriet.nl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Couple of additions to my posting:
> 1. A Virtual Directory called cgi-bin within your web site.
It doesn't have to be called cgi-bin - though that is the normal name for
the script directory.
The Virtual Directory has to have the name that you are going to access via,
as in:
http://your_web_site/
On Fri, 18 Jan 2002 15:40:39 -0500, [EMAIL PROTECTED] (William Ampeh) wrote:
>I have just been asked to come up with Perl/Mysql demo on Monday.
>Considering the short notice, I was wondering if anyone can point me to a
>freeware
>WEB-base database system implemented in Perl and Mysql.
>
Try this
What is the meanings of the following two expressions?
1.$var1{$var2}
2.$var1($var2)
_
Do You Yahoo!? µÇ¼Ãâ·ÑÑÅ»¢µçÓÊ! http://mail.yahoo.com.cn
ÎÞÁÄ£¿ÓôÃÆ£¿¸ßÐË£¿Ã»ÀíÓÉ£¿¶¼À´ÁÄÌì°É£¡¡ª¡ª
ÑÅ»¢È«ÐÂÁÄÌìÊÒ! http://cn.chat.yahoo.com/c/roomlist
> 1. A Virtual Directory called cgi-bin within your web site.
That was great. Just a couple points, the directory can be called cgi-bin but
doesn't need to be. I made the same changes to one called 'store' tonight on
NT4 and it works.
Secondly for security reasons I've heard it generally recom
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Scott R. Godin) wrote:
Many thanks to all of you who responded. :-) One of the things I love
the most about these lists -- that one can get so many different
perspectives on a problem and solution, because it gives one so much
more of an id
http://www.commercesql.com/ is one.
If on Winders you'll have some surgery to do, like adding a new spleen to their
code, the sendmail module. Since you have that deadline, recommend *nix.
/g
Federal Reserve needs a free package? Whew! That's some recession.
> -Original Message-
> F
Hi Maureen,
> I set up this cgi file and html form on a Unix server. The script
> changes a user's password in a text file.
>
> This works correctly on a Unix Server. However, I need to move these
> files to an IIS server.
> In testing on the IIS server, I get an HTTP Error 405- Method not
> all
42 matches
Mail list logo