You can use the CGI perl module to print headers, or you can print them
directly like:
print Content-type: text/plain\n\n;
Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]
- Original Message -
From: Philip Pawley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday,
Hi,
is there any way to execute the following script without using a file
myfile.txt.
I have tested with a variable @X whith the same content as myfile.txt
($command='prog @X' but dont work correctlly.
Thanks for any suggestion
KN
#!/usr/local/bin/perl
use IPC::Open3;
my ($commande);
$commande
On Wed, 15 Jan 2003 15:54:02 +0800, [EMAIL PROTECTED] (Glynn
S. Condez) wrote:
i have a web form that users can input a username and password and check if
the username is valid by parsing or extracting the contents of a file, here
the web form html:
I'm not sure what you are trying to do with
You need to use the CGI script:
use CGI;
my $cgi = new CGI;
my $username = $cgi-param('username');
my $password = $cgi-param('password');
Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]
- Original Message -
From: Glynn S. Condez [EMAIL PROTECTED]
To: [EMAIL
Does this work for Unix? Which module do I use for Unix ...
Thanks and Cheers always!!
Murli
[EMAIL PROTECTED] wrote:
In a message dated 1/14/2003 4:33:13 PM Eastern Standard Time,
[EMAIL PROTECTED] writes:
Can anybody tell me how to install GD for Active State Perl? Thanks a lot.
On Wednesday, Jan 15, 2003, at 06:43 US/Pacific, [EMAIL PROTECTED]
wrote:
[..]
#!/usr/local/bin/perl
use IPC::Open3;
my ($commande);
$commande = 'prog myfile.txt';
$pid = open3(*SON_IN, *SON_OUT, *SON_ERR, $commande);
close(SON_IN);
@lignes_out = SON_OUT;
@lignes_err = SON_ERR;
print STDOUT:\n,
If your on a Unix system, you can install the GD modules very simply like you
would any (check out the help files on cpan.org, and of GD itself. (perldoc
-q install will work too)) The installation instructions I gave was for GD
on a Widows ActivePerl system, because someone asked.
how do I retrieve save files that has been posted from a Html form to my cgi script.
please send a piece of example code
On Wed, 15 Jan 2003 at 22:32, LRMK opined:
L:how do I retrieve save files that has been posted from a Html form to
L:my cgi script.
have you read 'perldoc CGI'?
L:please send a piece of example code
from 'perldoc CGI' (for a plain text file):
$fh = $query-upload('uploaded_file');
Bill,
Thanks for the help. I followed your instruction pretty well. Had to
create a folder named as MSWin32-x86-multi-thread for the command work.
However the compilation of my program failed at the statement use GD; in
the align.pm. Wondering if the installation was successful or not. What
From: zentara [EMAIL PROTECTED]
Hi it works now but why is it that it prints a lot of results and it seems
that it reads the
file line by line and do the output. Sorry i forgot to mention that the file
contains duplicate entries
of username, it something like:
snip
user: user1 realm:
I have to say that as a relative beginner, I have really noticed that using
cgi.pm to generate forms and entire web pages is a more than a little time
consuming. In the interest of time, I have been using print EndOfHTML;
to print the html code (esp. forms) in my programs. There are limitations
I haven't find any limitation when printing the HTML text directly with
print eoh;
eoh
I find it more easy than using CGI.pm for this task.
Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]
- Original Message -
From: Hughes, Andrew [EMAIL PROTECTED]
To: [EMAIL
Hi all -
I am developing a perl 5.8 application using the
new threading model. I use this technique
(thanks Jenda!) to dup STDIN to a temp file handle:
...
open SAVIN, 'STDIN';
open (STDIN,'' . $tmpfh-fileno) or die ...;
my $out = `some-command 21`;
open STDIN, 'SAVIN';
close $tmpfh;
hi
i have script which generates a set of xy coordinates.
how can i get the script to generate a gnuplot postscript file from theses
xy-pairs?
martin
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Martin, et al --
...and then Martin A. Hansen said...
%
% hi
Hi!
%
% i have script which generates a set of xy coordinates.
%
% how can i get the script to generate a gnuplot postscript file from theses
% xy-pairs?
It's been a while since I've played with gnuplot, so I have no idea of
the
Colin Johnstone wrote:
Gidday all,
Hello,
Im having trouble reading and writing to this file, It's probably just
something silly.
Heres my code. I have set the permissions on the file to 775.
code
my ($filename);
$filename =
John,
Thank you for your help.
Colin
-Original Message-
From: John W. Krahn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 15 January 2003 11:00 PM
To: [EMAIL PROTECTED]
Subject: Re: File Handling
Colin Johnstone wrote:
Gidday all,
Hello,
Im having trouble reading and writing to
hi
how to use an array as input for a external command called within a perl script?
im looking to pipe the array to the extarnal program ...
martin
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Martin A. Hansen wrote:
hi
Hello,
how to use an array as input for a external command called within a perl script?
im looking to pipe the array to the extarnal program ...
open PIPE, '| somecommand' or die Cannot open pipe to somecommand: $!;
print PIPE @array;
close PIPE or die Cannot
Hi Paul,
I have used Mail::Sender with good success with attachments. Sample code snipet from
an NT install follows. The entire program created a spreadsheet of SMTP stats through
Spreadsheet::WriteExcel and this portion mailed off the completed .xls file on the 1st
of every month.
@MailMe
What are some of the ways you guys use Perl for network administration?
Paul Kraus
Network Administrator
PEL Supply Company
216.267.5775 Voice
216-267-6176 Fax
www.pelsupply.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Wed, Jan 15, 2003 at 05:34:59AM -0800, John W. Krahn wrote:
Martin A. Hansen wrote:
hi
Hello,
hi again
how to use an array as input for a external command called within a perl script?
im looking to pipe the array to the extarnal program ...
open PIPE, '| somecommand' or
Sorry if I already missed a post where you said you couldn't (have had the flu), but
could you use one of the various modules in CPAN to control gnuplot instead of trying
to manipulate it yourself?
A quick search:
http://search.cpan.org/search?query=Gnuplotmode=all
Hi All
How do I extract a whole number from the rand function.
I am using rand 25000; which generates a random number with many decimal
places, e.g. 16235.2587965, I need a whole number as the answer. Sorry if
this is simple...
Regards
Maurice
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
I am trying to print a number with commas in it. I cannot find the correct syntax to
do this with printf.
I considered using the substr function but this depends on mealways knowing the size
of the number.
Can you help me with this?
Reggie
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hello!
Is it possible to get the type of a variable at run time?
Suppose I have $var which may be a ref to a hash, or a ref to an array or a
scalar (maybe a ref to it).
Should I try to hack it out from the address
(the weird thing, for example ARRAY(0x...))?
Or is there any other way?
Please,
Hello!
Is it possible to get the type of a variable at run time?
Suppose I have $var which may be a ref to a hash, or a ref to an array or a
scalar (maybe a ref to it).
Should I try to hack it out from the address
(the weird thing, for example ARRAY(0x...))?
Or is there any other way?
Please,
-Original Message-
From: Maurice O'Prey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 9:28 AM
Hi All
How do I extract a whole number from the rand function.
I am using rand 25000; which generates a random number with
many decimal
places, e.g. 16235.2587965, I
Thanks! Now I have another problem.
Is there a ppm repository for File-DosGlob or do I need to figure out how to
get the cpan shell working in Windows?
Jenda Krynicky [EMAIL PROTECTED] wrote in message
3E21CB2D.30323.C586393@localhost">news:3E21CB2D.30323.C586393@localhost...
From: David Eason
I am thinking about designing a new time clock system for my work. I was
looking at the digital persona u.are.u devices. Has anyone written any
code to work with these for authentication? Is it even possible.
It would be nice to just through up a couple sensors. An employee comes
in. Sticks his
On Wed, Jan 15, 2003 at 08:27:13AM -0600, [EMAIL PROTECTED] wrote:
Sorry if I already missed a post where you said you couldn't (have had the flu), but
could you use one of the various modules in CPAN to control gnuplot instead of trying
to manipulate it yourself?
hi
i did look at it, but i
Hi,
I need some help getting cleared up with an issue I had this
afternoon (and still trying to figure out now). I have
Perl 5.6.1 installed at work. It didn't come (AFAIK) with
NDBM_FILE.pm. (Required for chpass... which brings me
to a different question that I'll ask after this). So
I go to
int(rand 25000)
Dylan
-Original Message-
From: Maurice O'Prey [mailto:[EMAIL PROTECTED]]
Sent: January 15, 2003 10:28 AM
To: [EMAIL PROTECTED]
Subject: Random Number Generation
Hi All
How do I extract a whole number from the rand function.
I am using rand 25000; which generates a
Do you realize you've posted this message three times so far today and I think
yesterday as well?
Check your mail prog.
-Original Message-
From: OROSZI Balzs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 3:56 PM
To: [EMAIL PROTECTED]
Subject: determining variable types
Hi Reggie!
-Original Message-
From: Johnson, Reginald (ECCS) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 11:32 AM
To: '[EMAIL PROTECTED]'
Subject: printing number with commas in it
I am trying to print a number with commas in it. I cannot find
the correct syntax
On Wed, 15 Jan 2003 08:46:04 +1100, [EMAIL PROTECTED]
(Colin Johnstone) wrote:
Is a CSV a comma delimited list. If so when creating a CSV how does one cope with
fields that have commas in them.
An address filed for example could be written suite 2, lvl 3.
Do you write the field names out with
Hi -
-Original Message-
From: OROSZI Balzs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 11:56 AM
To: [EMAIL PROTECTED]
Subject: determining variable types
Hello!
Is it possible to get the type of a variable at run time?
Suppose I have $var which may be a ref to a
You may want to try using some unix functions to do this.
If you're really good at verifying that their input is legal, that the user exists,
that their old password is right and that the new ones match and you're 100% sure oyu
want to do this you could always do backtick execution.
man pw
man
I have already read Learning Perl and am looking to get another book to
learn more what would people recommend?
Thanks,
Dylan
Reggie Wrote:
I am trying to print a number with commas in it. I cannot
find the correct syntax to do this with printf.
I considered using the substr function but this depends on
mealways knowing the size of the number.
Can you help me with this?
I like to use the method listed in the
Hi Reggie!
-Original Message-
From: Johnson, Reginald (ECCS) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 11:32 AM
To: '[EMAIL PROTECTED]'
Subject: printing number with commas in it
I am trying to print a number with commas in it. I cannot find
the
Disregard my last post! That was the regex of the
day to replace the one in that commati routine.
Works like a charm.
Dan
-Original Message-
From: Westgate, Jared [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 9:18 AM
To: Johnson, Reginald (ECCS)
Cc: [EMAIL
-Original Message-
From: Dan Muey
Sent: Wednesday, January 15, 2003 9:19 AM
To: Beau E. Cox; Johnson, Reginald (ECCS); [EMAIL PROTECTED]
Subject: RE: printing number with commas in it
Hi Reggie!
-Original Message-
From: Johnson, Reginald (ECCS) [mailto:[EMAIL
Programming Perl by Oreilly
-Original Message-
From: Dylan Boudreau [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 10:06 AM
To: [EMAIL PROTECTED]
Subject: Perl book
I have already read Learning Perl and am looking to get
another book to learn more what would
HI -
-Original Message-
From: Dylan Boudreau [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 5:06 AM
To: [EMAIL PROTECTED]
Subject: Perl book
I have already read Learning Perl and am looking to get another book to
learn more what would people recommend?
Thanks,
[EMAIL PROTECTED] wrote:
i need to translate the following commandline to perl:
(echo set term post; echo plot '-' w l; cat data) | gnuplot
data.ps
open(F, | gnuplot data.ps) or die $!;
print F set term post\n, plot '-' w l\n;
print $_\n for @commands;
close F or die $!;
--
Bob Showalter wrote:
[EMAIL PROTECTED] wrote:
i need to translate the following commandline to perl:
(echo set term post; echo plot '-' w l; cat data) | gnuplot
data.ps
open(F, | gnuplot data.ps) or die $!;
print F set term post\n, plot '-' w l\n;
print $_\n for @commands;
The black books are very nice. I like them better than the Orielly ones.
Not to start a flame war, I just like em better.
Also there's the 'using perl' for specifci jobs, system admin, web programming,
database, algorythms, etc
Can't remember the publisher off hand, sorry.
Depends on what
My Perl libary consists of Learning Perl, Programming Perl, The Perl
Cookbook, Advanced Perl Programming, and I just ordered the DBI book.
Most people probably don't need all those, and I probably wouldn't have
them all if I hadn't received most of them during some professional
training
I am a network administrator maintaining strictly Unix boxes of some
type or another. I want to become as proficient at Perl as I possibly
can because I see scripting as the week point on my resume. I have the
Oreilly book Perl for System Administrators but I want to read another
book before I
Hey Reggie - why are your messages getting posted 2,3,or 4 times?
-Original Message-
From: Dan Muey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 5:26 AM
To: Dan Muey; Beau E. Cox; Johnson, Reginald (ECCS); [EMAIL PROTECTED]
Subject: RE: printing number with commas in
On Wed, Jan 15, 2003 at 10:33:45AM -0500, Bob Showalter wrote:
Bob Showalter wrote:
[EMAIL PROTECTED] wrote:
i need to translate the following commandline to perl:
(echo set term post; echo plot '-' w l; cat data) | gnuplot
data.ps
open(F, | gnuplot data.ps) or die $!;
I'd say go to the library then and check out some books
( have them get them other libraries if they don't have them )
and when you find one you jive with go buy it.
I love 'The Black Book of Perl' and have learned most all
I do from it and I to do a lot of Unix Administration.
One reason I
On Wed, 15 Jan 2003 11:39:04 -0400, Dylan Boudreau [EMAIL PROTECTED] wrote:
I am a network administrator maintaining strictly Unix boxes of some
type or another. I want to become as proficient at Perl as I possibly
can because I see scripting
According to Amazon the Perl black book is out of print. :( you got me
all hyped about checking it out :)
-Original Message-
From: Dan Muey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 11:12 AM
To: Dylan Boudreau; [EMAIL PROTECTED]
Subject: RE: Perl book
I'd
According to Amazon the Perl black book is out of print. :(
That's a crime!
you got me all hyped about checking it out :)
Sorry :) I get feverish on occasion about stuff.
Maybe I should be in sales? N
-Original Message-
From: Dan Muey [mailto:[EMAIL PROTECTED]]
Sent:
Hi all,
Does anyone know a way of creating GUI interfaces directly from Perl,
that will work with OS X's native Aqua interface?
Thanks for any info.
Brian
BBCi at http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain
personal views which are not the views
On Wed, 15 Jan 2003 11:39:04 -0400, Dylan Boudreau
[EMAIL PROTECTED] wrote:
I am a network administrator maintaining strictly Unix
boxes of some
type or another. I want to become as proficient at Perl as
I possibly
can because I
It is out of print according to amazon.com but if you check chapters.ca
it is listed as being available and shipped within 24 hrs.
Dylan
-Original Message-
From: Paul Kraus [mailto:[EMAIL PROTECTED]]
Sent: January 15, 2003 12:21 PM
To: 'Dan Muey'; 'Dylan Boudreau'; [EMAIL PROTECTED]
It may be 'Perl Black Book' actually, I don't have it with me right now but I'll get
the info and post it later today.
There's a whole series of 'Balck Books' for different programming languages and stuff.
An excellent reference but also better learning tools because of example situations
for
Hi all,
Does anyone know a way of creating GUI interfaces directly
from Perl, that will work with OS X's native Aqua interface?
Good question! If not we need to get someone on it asap. OS X is awesome!
Unix and mac and microsoft free!!! Oh what a wonderful thing!
I've wondered this myself
Hi list,
Please forgive what must be seen as amazingly naive! I
have just managed to get an apache server loaded
locally (so I can test my scripts/etc) without putting
them on our corporate server all the time. Now I've
managed to get php to work...but a simple *.cgi script
that prints script
1. Log into FTP and get new AV dats, if a new version is posted.
2. Securely copy logs from one network to another for analysis. (Thanks File::Remote)
3. Consolidate account creation process. (Creating accounts for services while
creating user accounts).
4.
Paul Kraus [EMAIL PROTECTED]
Are the .cgi scripts perl?
Is .cgi associated with perl?
Do they work if you use .pl instead?
Do they work if you run them form the dos prompt?
Are they executable ( not sure about how windows does that ) ?
Do you need the Exec cgi directive in Apache for that directory or for a cgi-bin
I generally like the O'Reilly Perl books, and I've had good luck with
them. I can't use them as my only Perl reference, though. I don't pick
up the condescending tone in them that you seem to have, but I
definately agree that they're overrated. The Perl books, in general,
are excellent, but
WOW the black book is almost 70 bucks!!! BUT CHECK THIS OUT. Amazon has
it used for around 10 bucks with the CD woo who!!
-Original Message-
From: Dan Muey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 11:25 AM
To: [EMAIL PROTECTED]; Dylan Boudreau; [EMAIL PROTECTED]
The input must be an email address and I am checking it the following
way:
print Enter an address to replace: ;
chomp (my $search = STDIN);
unless ($search =~ /@/){
die Search field must be an email address!\n;
}
print Enter a replacement address: ;
chomp
WOW the black book is almost 70 bucks!!! BUT CHECK THIS OUT.
Amazon has it used for around 10 bucks with the CD woo who!!
$70? Mine was $20 but I think I got the smaller version, no CD
The big one is still pretty sexxy though from what I've seen of it
It may be worth $70 but if you can get it
Hello all,
I need to create a .txt file and then print some text to it Does anyone know
how to do this?
Thanks in advance...
Kurt
-Original Message-
From: Ben Crane [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 10:55 AM
To: Dan Muey
Subject: RE: Local Apache Server and CGI?
--- Dan Muey [EMAIL PROTECTED] wrote:
Are the .cgi scripts perl?
*YES
Is .cgi associated with perl?
There is a pink and a blue camel book from O'Reilly. What is the
difference, and which comes most highly recommended?
Robbie
--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Robbie Staufer
NCAR/SCD
1850 Table Mesa Dr. Rm. 42
Boulder, CO. 80305
(303) 497-1836
--
To unsubscribe,
=~ m/^(\w+).*\(\w+)@(\w+).*\.(\w+)$/
Would match [EMAIL PROTECTED]
[EMAIL PROTECTED]
But not
joemama@joemam
Or [EMAIL PROTECTED]
There is even a better way to do it instead of the .* which will match
Joemama~$%*(()_)+=-:{}|?hi@hi~!#%^*().com
Which is obviously bad but this is at least somewhat
#!/usr/bin/perl -w
open TEXT,mytext.txt;
print TEXT add some text to text file\n;
print TEXT add some more text to text file\n;
close TEXT;
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 12:06 PM
To: [EMAIL PROTECTED]
Use open() to open a file for writing and it will be created automatically.
open(FILE, 'file.txt');
print FILE $stuff;
close(FILE);
perldoc -f open
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 11:06 AM
To: [EMAIL
[EMAIL PROTECTED] wrote:
Hello all,
I need to create a .txt file and then print some text to it
Does anyone know how to do this?
Thanks in advance...
Kurt
By opening, printing, you will have a text file:
open(MYTEXTFILE, text.txt) || die Unable to open
Ben Crane wrote:
... a simple *.cgi script
that prints script working suddenly prints the
contents of the program, i.e: apache isn't seeing
*.cgi as a script and is dumping it as a txt file onto the browser...
You have to configure Apache through the httpd.conf to treat specific
directories
Pink is first edition, blue is second edition, i think there is a third
edition out now, may as well go for the latest and greatest
-Ken
-Original Message-
From: Robbie Staufer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 12:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Perl
Dylan Boudreau wrote:
The input must be an email address and I am checking it the following
way:
[snip]
This does work but I am sure there must be a better way. The whole
program is a search and replace utility for email addresses on all our
mailing lists so when someone changes their
Threads share U area , thats where file descripters are stored for your
process. All threads are in one process. I sedjest using semaphors for
contolling access to any resources.
Mark
- Original Message -
From: Beau E. Cox [EMAIL PROTECTED]
To: 'Beginners [EMAIL PROTECTED]
Sent:
Hello Perl lovers,
I am developing a script which runs in TCSH 6.x shell. I have two questions
1. I need to be able to set an global enviernment variable. The shell has a
build in command setenv which would enable me to do what I need. This is
what I try,
system(setenv DESTDIR /mnt);
...but
I use this for email verification
$str =~ /^[^@]+@[^.]+\.[^.]/);
- Original Message -
From: Dylan Boudreau [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 11:57 AM
Subject: Checking to see if input has valid data.
The input must be an email address and
On Wed, 15 Jan 2003 10:47:45 -0600, Dan Muey [EMAIL PROTECTED] wrote:
Are the .cgi scripts perl?
Is .cgi associated with perl?
Do they work if you use .pl instead?
Do they work if you run them form the dos prompt?
Are they executable
From: Johnson, Reginald (ECCS) [EMAIL PROTECTED]
I am trying to print a number with commas in it. I cannot find the
correct syntax to do this with printf. I considered using the substr
function but this depends on mealways knowing the size of the number.
Can you help me with this?
use
Greetings!
I have been using my Win98 box to modify some scripts that will be run
on a Unix server. Within the body of the script, I can surround
OS-specific things like test code I want my machine to execute and
calls that throw errors under Win98 like flock() with checks to see
what operating
Thanks Mark - I thought maybe that was the case...
well now I have to evaluate the performance penality
and look into my other options, Aloha = Beau;
-Original Message-
From: Mark Goland [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 7:43 AM
To: Beau E. Cox
Cc: perl
Hi -
-Original Message-
From: Mark Goland [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 7:56 AM
To: perl
Subject: waitpid
Hello Perl lovers,
I am developing a script which runs in TCSH 6.x shell. I have
two questions
1. I need to be able to set an global
Thanks Mark - I thought maybe that was the case...
well now I have to evaluate the performance penality
and look into my other options, Aloha = Beau;
Good Luck, if Threads are well implemented they should be flying fast in
general.
Mark
- Original Message -
From: Beau E. Cox [EMAIL
2. system ($cmd) and `$cmd` do _wait_ for the command to
finish before returing (the difference being system retuns
the command's return code and `` returns the output). A
series of these should do what you want.
thats what I though, but aparently thats not the case. This maybe do
to a
Hi -
-Original Message-
From: Rob Richardson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 8:23 AM
To: [EMAIL PROTECTED]
Subject: Script that runs on my Win98 box and the Unix server
Greetings!
I have been using my Win98 box to modify some scripts that will be run
On Wed, 15 Jan 2003 12:55:39 -0500, Mark Goland [EMAIL PROTECTED] wrote:
Hello Perl lovers,
I am developing a script which runs in TCSH 6.x shell. I have two questions
Remember your script runs in Perl not in the shell, you run the perl
The quest for an email validation script is becoming ancient and
legendary. I'm sure somebody else already has sounded off on this, but
the short answer is that there's no sure-way to validate email. There's
any number of potential problems:
1. The email address does not conform to the RFC
Beau,
Perhaps then my question would have been better to ask on the CGI list.
The script in question is a CGI script being executed through Internet
Explorer and Apache. When the first line of my script is #!perl, the
script executes as desired. When the first line is #!usr/bin/perl,
the
Hi there,
Just another way to do it!
Cheers,
Jakob
#!/usr/bin/perl -w
open FILE, , yourfile.dat;
print FILE EOF;
Here you can write what you whant
without having to type print FILE before every line!
EOF
close FILE;
-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL
On Wednesday, January 15, 2003, at 08:28 AM, Maurice O'Prey wrote:
How do I extract a whole number from the rand function.
int() is your friend, if you want an integer from rand.
I am using rand 25000; which generates a random number with many
decimal
places, e.g. 16235.2587965, I need a
here a sub that i use.
$number = 123456 ;
$number = commify($number) ;
sub commify
{
local($_) = shift;
1 while s/^(-?\d+)(\d{3})/$1,$2/;
return $_;
}
-Original Message-
From: Jenda Krynicky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 12:21 PM
To: '[EMAIL
-Original Message-
From: Le Blanc, Kerry (Kerry) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 1:39 PM
To: '[EMAIL PROTECTED]'
Cc: Le Blanc, Kerry (Kerry)
Subject: question regarding a query agains a text file
Greetings,
Here is my question. In the below
Kerry LeBlanc
Materials Auditor
Process Owner
75 Perseverence Way
Hyannis, MA. 02601
1-508-862-3082
http://www.vsf.cape.com/~bismark
#make sure $part_num is formatted correctly to keep someone form doing bad things with
the backtick execution
I am not familiar with the term backtick
Kerry LeBlanc
Materials Auditor
Process Owner
75 Perseverence Way
Hyannis, MA. 02601
1-508-862-3082
http://www.vsf.cape.com/~bismark
#make sure $part_num is formatted correctly to keep someone
form doing bad things with the backtick execution
I am not familiar with the
Hello,
I would like to know if it is possible to do somthing like this:
( I know I can't do it this way as Perl barfs when I tried it )
$SizeOfMyArray = 2;
$MyArray[ $SizeOfMyArray ];
push( @MyArray[ 0 ], 0 ); --- complains here with ERROR (see
below )
push( @MyArray[ 1 ],
1 - 100 of 117 matches
Mail list logo