2011/4/29 :
> Are there any current open source Perl shopping carts out there? The
> only carts I've been able to find are either ancient or are written in PHP.
>
I don't know there is such one.
You may post to mod_perl and Perl CGI mailing lists to get more info.
Regards.
--
To unsubs
Dave, in looking at the documentation for Net::SCP, it does not appear that
it can accept a wildcard. It looks like it has to be the exact name of the
file that you wish to retrieve. It might be creating a file with nothing in
it. When it retrieves that file, is it really the file, or just a zer
On Apr 28, 9:31 am, dthack...@gmail.com (Dave Thacker) wrote:
> Hi,
> I need to pull a file or files down every day that contain a specific
> string. Here's my code.
>
> #!/usr/bin/perl
> use strict;
> use Net::SCP;
>
> my $scp=' ';
> open (LOG, ">>/home/wesaysopost/logs/retrieve-wesayso-results.
Are there any current open source Perl shopping carts out there? The
only carts I've been able to find are either ancient or are written in PHP.
I know about Interchange, but it appears that you have to run an
installer(?), which my ISP won't allow me to do (I can't switch ISP's
> "zs" == z sway writes:
zs> Hi, I've finished it using recursion.
zs> #!/usr/bin/perl -w
use warnings is better
zs> use strict;
zs> use Data::Dumper;
zs> while (1) {
zs> print "Enter the expression : ";
zs> chomp($_ = );
zs> last if not $_;
zs> my @tree = grow($_);
it
Hi, I've finished it using recursion.
#!/usr/bin/perl -w
use strict;
use Data::Dumper;
#不检查输入算式是否正确
print "输入自然数算式(只允许加法、乘法、括号)\n";
print "输入完成按回车确认,退出请输入0\n\n";
while (1) {
print "Enter the expression : ";
chomp($_ = );
last if not $_;
my @tree = grow($_);
print Dumper(\@tree);
my $result = c
Hi,
I need to pull a file or files down every day that contain a specific
string. Here's my code.
#!/usr/bin/perl
use strict;
use Net::SCP;
my $scp=' ';
open (LOG, ">>/home/wesaysopost/logs/retrieve-wesayso-results.log") or die
"Can't open logfile";
LOG-> autoflush(1);
print LOG "Starting Ret
> "KK" == Karl Kaufman writes:
KK> Well, to be precise, your conceptual logic was fine; the
KK> implementation was flawed. As several have pointed out, you
KK> weren't replacing the comma with a _space_ *character*, but with
KK> the RegExp _whitespace_ *character class*.
to be really
- Original Message -
From: "Irfan Sayed"
To: "John W. Krahn" ; "Perl Beginners"
Sent: Thursday, April 28, 2011 9:28 AM
Subject: Re: regular expression
my logic was to just put the space character in place of comma and keep
rest as it is
but unfortunately that does not work
Well
> "TL" == Tim Lewis writes:
TL> What is considered to be the proper way of naming internal subroutines?
TL> Example:
TL> my_special_subroutine or mySpecialSubroutine
again it is a convention but perl names (other than class names) are
best done with _ as in my_special_subroutine. and i
On Thu, 28 Apr 2011 13:21:56 +0800, Jeff Pang wrote:
> I may think Perl OO (not moose) doesn't have private or protected
> methods as other languages like Java/Ruby. _method can be accessed from
> anywhere.
In your example, yes. But Moose *is* Perl's O-O, it's just a wrapper
around it. Perl prov
thanks all
From: Shawn H Corey
To: beginners@perl.org
Sent: Thursday, April 28, 2011 7:55 PM
Subject: Re: regular expression
On 11-04-28 10:05 AM, Irfan Sayed wrote:
> hi,
>
> i have following code.
>
>
> $target = "abc,xyz";
> print "$target\n";
> $target =~ s
my logic was to just put the space character in place of comma and keep rest as
it is
but unfortunately that does not work
thanks john for your trick
it is working now
From: John W. Krahn
To: Perl Beginners
Sent: Thursday, April 28, 2011 7:47 PM
Subject:
On 11-04-28 10:05 AM, Irfan Sayed wrote:
hi,
i have following code.
$target = "abc,xyz";
print "$target\n";
$target =~ s/,/\s/g;
print "$target\n";
i need to replace "comma" with whitespace for string "abc,xyz"
the output shud be "abc xyz"
the above regular expression does not do that . pl
John W. Krahn wrote:
Irfan Sayed wrote:
i have following code.
$target = "abc,xyz";
print "$target\n";
$target =~ s/,/\s/g;
print "$target\n";
i need to replace "comma" with whitespace for string "abc,xyz"
"Whitespace" is something that applies only to regular expressions but
the second pa
Irfan Sayed wrote:
hi,
Hello,
i have following code.
$target = "abc,xyz";
print "$target\n";
$target =~ s/,/\s/g;
print "$target\n";
i need to replace "comma" with whitespace for string "abc,xyz"
"Whitespace" is something that applies only to regular expressions but
the second part of
hi,
i have following code.
$target = "abc,xyz";
print "$target\n";
$target =~ s/,/\s/g;
print "$target\n";
i need to replace "comma" with whitespace for string "abc,xyz"
the output shud be "abc xyz"
the above regular expression does not do that . please suggest
--irfan
2011/4/28 Tim Lewis :
> What is considered to be the proper way of naming internal subroutines?
>
> Example:
> my_special_subroutine or mySpecialSubroutine
>
neither.
But it could be: _my_special_subroutine
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail
What is considered to be the proper way of naming internal subroutines?
Example:
my_special_subroutine or mySpecialSubroutine
-Original Message-
From: Uri Guttman [mailto:u...@stemsystems.com]
Sent: Thursday, April 28, 2011 12:50 AM
To: Shawn H Corey
Cc: beginners@perl.org
Subject: Re: s
19 matches
Mail list logo