Ok, I'm trying to understand this.
>open(CONFIG, "< /home/mnorris/$first_file") || die "Sorry, I couldn't READ
>/home/mnorris/$first_file\n";
> while () {
> s//$first_var/;
> push @newdata, $_;
> }
>close(CONFIG);
this pushes the replaced values into @newdata? How is this keeping
This should work, shouldn't it?
open(CONFIG,">>/home/mnorris/$first_file") || die "Sorry, I couldn't create
/home/mnorris/$first_file\n";
while () {
$_ =~ s//$first_var/;
}
close(CONFIG);
It should be opening the file named "$first_file" (created earlier in t
I'm trying to place a variable in the spot of an argument when exectuting a command
with "open." Here's what I'm trying to do.
open(COMMAND,"home/usr/usrname command $argument|");
while ()
print "$_"; #print output
It's not accepting the $argument variable i'm putting in.
__
This subroutine is supposed to chech the validity of an IP address. 4 numbers (1 -
255) separated by ".". But my regular expression doesn't seem to be working out for
me.
print "Enter IP address: ";
chomp($ip = );
&ipcheck($ip);
sub ipcheck{
if ($_[0] =~ m/([1-2][0..5]*[0..5]*)\.\1\.\1\.\\s
VBulletin seems to be a favorite bulletin board among PHP folks. Are there any good
perl alternatives out there. Well, let me reprhase that because I know there are Perl
alternatives. Those can easily be found. I should say, is there a Perl favorite out
there that is comparabe to the nice l
it.com
http://www.surfOrbit.com
_
Promote your group and strengthen ties to your members with [EMAIL PROTECTED] by
Everyone.net http://www.everyone.net/?btn=tag
--- Begin Message ---
http://www.google.be/search?q=psp+perl+server+page&hl=fr&ie=UTF8&oe=UTF8
José.
Michael Norris <[EM
Hello, I've recently come across web pages with the .psp extensions rather than the
usual /cig-bin/. I have found that .psp stands for Perl Server Pages, but I
have not been able to find a decent tutorial on how they work. Does anyone know of a
good site.
Thanks!
_
string =<This is the text I want
>But I also want this text on the next line
>how can I write this code so that it looks
>nicer than this.
>END
>
>
>> -Original Message-
>> From: Michael Norris [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, April 24, 2002
Hello,
I want to set a variable to a string with the new line character (\n) separating the
text I want onto new lines.
For example,
$string = "This is the text I want\nBut I also want this text on the next line\nhow
can I write this code so that it looks nicer than this.
How can I write that
Hello,
In my early (very early) stages of learning perl I've run into a conflict. I have
access to two linux machines that I practice on (I do not have admin rights). The
following is a simple script from "Learning Perl." Problem is, it runs on one linux
box, but not the other.
Here is th
Forgive me for such a basic question, I'm brand spanking new to Perl and programming
in general.
This is from the exercises in "Learning Pearl", chapter 6, exercise 1.
The goal is to reverse the order of all the lines of a specified file.
The very simple answer given in the book is as follow
11 matches
Mail list logo