Ok I know I can do: print "Hello" if 1; But how could I do an if else in one line? I have been playing around with the syntax and haven't been able to figure...
Not good to rely on user's IP address as some ISPs rapidly cycle through IP addresses every time user clicks on another link. The hex coding you have seen in...
Hi, I keep getting an uninitialized error and I do not know how to fix it. I know that you can normally fix this by assigning blanks to it but I am getting...
Denny Malloy
denny.malloy@...
May 1, 2003 2:15 pm
14605
On Thu, 1 May 2003 10:15:02 -0400, Denny Malloy wrote ... well, you didn't declare @digest ......
On Thu, 1 May 2003 10:15:02 -0400, Denny Malloy wrote ... well, you didn't declare @digest ... I did at the top of my code. I didn't post that part. Sorry! ...
Denny Malloy
denny.malloy@...
May 1, 2003 2:40 pm
14607
From: "Jonathan Dunn" <jon@...> ... the uninitialized error is NOT related to variable declaration at all! Try #!perl -w my $foo; print...
I'm having trouble adding quotes to the end of an array value. There seems to be a newline at the end but I need to add double quotes between the value and...
Denny Malloy <denny.malloy@...> wrote: When I tested your script I found more uninitialized errors than you indicated. ... The problem is in both your...
my (@parts) = split /\|/, $_, -1; Thanks again Charles. I did not realize null fields where not being stripped. I guess I should read "Programming Perl"...
Denny Malloy
denny.malloy@...
May 1, 2003 7:13 pm
14611
WOW, thanks thats not even using a "if" word! =)...
Hi All, I'm a web designer who is new to Perl. I've read the first several chapters of Sam's "learn Perl in 24 hours" but I still don't understand how to write...
... FYI: 'print' won't end the program. Try using 'die' instead. Perl will tell you some information about the error if you include its standard error message...
Hello everyone, I have the code below, and I send it the data below. However, on this small if statement, if(/(\S+)\s+PIN\?\s(L|H)/){ if($Value =~ /$2/){ print...
Well that's strange. Ok, here is my COMPLETE code. This code has the $1 included in both the if and the else statement. You should get the same error I...
... At this point $1 and $2 are defined. ... At this point $1 and $2 are undefined. Because of the last match was successful and didn't contain parenthesis. ...
Welcome To The World Wide Web With so many years experience of being on the internet myself and Charmaine have come up with the idea of creating a group where...
It is not a good idea to store the password in the cookie if it is not crypted at all. A visitor may see your page from an Internet Cafe and that cookie will ...
Octavian Rasnita
teddy2003@...
May 2, 2003 2:56 am
14621
... When a scalar walue is stored into array, it is stored into the first (counted form null) slot. $currentdate = $currentdate[0]; ... Thats correct, because...
Hans Ginzel
hans@...
May 2, 2003 7:25 am
14622
After so many years experience of being hacked off by spammers on the internet, myself and some other looney have come up with the idea of creating a group...
hi, i want to search a file for a user entered string from STDIN, perhaps a first name and a second name. i only want the exact string entered and only one...
This can get a little confusing so hang on :-) We have an ad-processing system that will process all ads in alphebetical order. All the file names are numbers...
... Did you notice you forgot to include sample code? -- James 'Chip' Kaufman jkaufman@... PGP key: 697D43DE...
James 'Chip' Kaufman
jkaufman@...
May 2, 2003 4:34 pm
14626
Hi this is a tough one I believe. I am looking for a way to encrypt a string in Perl and to be able to decrypt in PHP. Will blowfish do? as I know that moudle...
Encryption isn't a part of programming its just one of the ways we can implement it first of all. Second you can use any algorythm thats supported in both...
Well what are you comparing them to? what are you searching in? you are searching for your name: my $name = 'wayne clements'; So you need to split it up... my...
Hello, Im having a bit of trouble figuring out how to reference a subroutine in perl. I have a check_input subroutine that runs a bit of data checking for...