On 4/7/06, Irfan J Sayed [EMAIL PROTECTED] wrote:
snip
I downloaded the zip file from CPAN
But i am not getting one point
which command i should use in perl . i mean what is the syntax.
which module i should choose from that zip file after unzipping. (zip.pm ?)
snip
The compressed file for
John W. Krahn am Freitag, 7. April 2006 01.09:
D. Bolliger wrote:
btw, @04 is not a valid (array) variable name; they must not start with a
digit, as not keyword/builtin does.
$ perl -Mwarnings -Mstrict -le' our @04 = 10 .. 14; print @04'
10 11 12 13 14
You are probably thinking scalars
Irfan J Sayed schreef:
Please don't top-post.
Hi Chas,
Try e-mail.
I downloaded the zip file from CPAN
Why? If you are on Windows and run ActivePerl, do
C:\Perl ppm
and wait for the ppm-prompt, then:
ppm query Archive-Zip
Querying target 1 (ActivePerl 5.8.7.813)
1.
How could I write a script that could anonymously accept user written
modules that are listed in a text file? reading from a text file I get,
but where would I start on loading the modules dynamically like that?
Roger Mayfield
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
On 4/7/06, Roger Mayfield [EMAIL PROTECTED] wrote:
How could I write a script that could anonymously accept user written
modules that are listed in a text file? reading from a text file I get,
but where would I start on loading the modules dynamically like that?
Roger Mayfield
snip
Well, in
Hi,
each file name begins with xtst of which I've near 18 of these small files
(for example, xtst033006, xtst040106, xtst022406 etc. etc.)
these text files may contain code snippet and/or help, howto info
within the first 6 lines of each of these files there is a keyword line that
begins with
Chas Owens wrote:
On 4/6/06, John W. Krahn [EMAIL PROTECTED] wrote:
snip
If you had strictures enabled then perl would have told you. Make sure that
this is near the top of your programs:
use strict;
snip
Yes, always good advice. Unfortunately it would not have helped me
here since I was
Alan_C wrote:
Hi,
Hello,
each file name begins with xtst of which I've near 18 of these small files
(for example, xtst033006, xtst040106, xtst022406 etc. etc.)
these text files may contain code snippet and/or help, howto info
within the first 6 lines of each of these files there is a
On 4/7/06, John W. Krahn [EMAIL PROTECTED] wrote:
Chas Owens wrote:
On 4/6/06, John W. Krahn [EMAIL PROTECTED] wrote:
snip
If you had strictures enabled then perl would have told you. Make sure that
this is near the top of your programs:
use strict;
snip
Yes, always good advice.
Hello,all,
I wrote a script to insert datas to mysql database.The insert frequency is
about 45 times per second.
Most of the insert actions are successful,but I still see some errors as
follow:
DBD::mysql::st execute failed: INSERT command denied to user
'abc'@'192.168.3.10' for table 'rcpt' at
On 4/7/06, Practical Perl [EMAIL PROTECTED] wrote:
Hello,all,
I wrote a script to insert datas to mysql database.The insert frequency is
about 45 times per second.
Most of the insert actions are successful,but I still see some errors as
follow:
DBD::mysql::st execute failed: INSERT command
Practical Perl schreef:
I wrote a script to insert datas to mysql database.The insert
frequency is about 45 times per second.
Most of the insert actions are successful,but I still see some errors
as follow:
DBD::mysql::st execute failed: INSERT command denied to user
'abc'@'192.168.3.10'
John W Moon
Systems Project Analyst
Enterprise Information Technology Services (EITS)
Department of Management Services
4030 Esplanade Way, Suite 260G
Tallahassee, Fl 32399-0950
Office: (850)922-7511
Email: [EMAIL PROTECTED]
Please note: Florida has a very broad public records law. Most written
Am Freitag, 7. April 2006 07:15 schrieb Irfan J Sayed:
I need to zip my backup dir. so that it will automatically convert my
backup dir to backup.zip file
can it be happen through perl ?
Why don't you use backticks?
btw: are you running perl on win32?
cu,
Oliver
--
To unsubscribe,
Thanks for all,I'll try some ways to fit it.
Hi all
I have a string like so
01.01.04
I need to split and add it to an array
my method of
($abc) = $test =~ /\./g;
does not seem to provide me with a satisfying result
and I get back is the period.
If anyone could assit, it would be most helpful
Kind Regards
Brent Clark
--
To
Hi Brent,
The split() is wonderful for doing what you want.
-Anne
This one time, Brent Clark wrote:
Hi all
I have a string like so
01.01.04
I need to split and add it to an array
my method of
($abc) = $test =~ /\./g;
does not seem to provide me with a satisfying result
On 4/7/06, Brent Clark [EMAIL PROTECTED] wrote:
I have a string like so
01.01.04
I need to split and add it to an array
Split, huh? Have you tried using the split() operator? It's covered in
the perlfunc manpage.
But if you're dealing with date-and-time data, you may really be
looking for
On Fri, 2006-07-04 at 17:38 +0200, Brent Clark wrote:
Hi all
I have a string like so
01.01.04
I need to split and add it to an array
my method of
($abc) = $test =~ /\./g;
does not seem to provide me with a satisfying result
and I get back is the period.
If anyone could
If you are running on Windows you can install Archive::Zip through PPM.
ppm install Archive-Zip
-Original Message-
From: Oliver Block [mailto:[EMAIL PROTECTED]
Sent: Friday, April 07, 2006 5:03 AM
To: beginners@perl.org
Subject: Re: zip command in perl
Am Freitag, 7. April 2006 07:15
I'm trying to learn web scraping and am stopped at the basic point of
scraping a portion
of a web page. I'm able to scrape a full page and save it as *.xml or
*.htm, and I think
I understand regex, but the following fails:
**
# Prints a portion of a red cross web page to a new
Hi,
I understand regex, but the following fails:
open PAGE, 'c://redcross.htm';
while( my $line = PAGE ) {
$line =~ /Health and Safety Classes/
print $1\n;
}
What fails? Your forget a ';' after the regex but I guess that's not what you
mean!? :)
cu,
Oliver
--
To unsubscribe, e-mail:
On Fri, 07 Apr 2006 16:02:53 -0400, Oliver Block [EMAIL PROTECTED]
wrote:
Hi,
I understand regex, but the following fails:
open PAGE, 'c://redcross.htm';
while( my $line = PAGE ) {
$line =~ /Health and Safety Classes/
print $1\n;
}
What fails? Your forget a ';' after the regex but I guess
On Fri, 2006-04-07 at 16:36 -0400, [EMAIL PROTECTED] wrote:
On Fri, 07 Apr 2006 16:02:53 -0400, Oliver Block [EMAIL PROTECTED]
wrote:
Hi,
I understand regex, but the following fails:
open PAGE, 'c://redcross.htm';
while( my $line = PAGE ) {
# $line =~ /Health and Safety Classes/
Irfan J Sayed wrote:
Hi,
Following command works fine.
use File::Copy::Recursive qw(dircopy);
dircopy($source, $target);
Thanks for all your help.
Excellent! Glad to help :) You may want to consider posting inline
instead of top posting for list discussions. Its much easier to read
Am Freitag, 7. April 2006 22:36 schrieb [EMAIL PROTECTED]:
I was trying to limit the result to the words /Health and Safety
Classes/ that appear on the page. How do I get there?
At first you need to understand regex! :)
open PAGE, 'c://redcross.htm';
while( my $line = PAGE ) {
$line =~
On 4/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
On Fri, 07 Apr 2006 16:02:53 -0400, Oliver Block [EMAIL PROTECTED]
wrote:
I understand regex, but the following fails:
open PAGE, 'c://redcross.htm';
while( my $line = PAGE ) {
$line =~ /Health and Safety Classes/
print $1\n;
}
On Friday 07 April 2006 13:15, [EMAIL PROTECTED] wrote:
I'm trying to learn web scraping and am stopped at the basic point of
scraping a portion
of a web page. I'm able to scrape a full page and save it as *.xml or
*.htm, and I think
I understand regex, but the following fails:
28 matches
Mail list logo