Re: [OFF] OSS Perl Shopping Carts

2011-04-28 Thread Jeff Pang
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

RE: :SCP is saving a file name with a wild card

2011-04-28 Thread Tim Lewis
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

Re: Net::SCP is saving a file name with a wild card

2011-04-28 Thread C.DeRykus
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.

[OFF] OSS Perl Shopping Carts

2011-04-28 Thread sono-io
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

Re: How to Generate An Expression to A LOL?

2011-04-28 Thread Uri Guttman
> "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

Re: How to Generate An Expression to A LOL?

2011-04-28 Thread z sway
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

Net::SCP is saving a file name with a wild card

2011-04-28 Thread Dave Thacker
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

Re: regular expression

2011-04-28 Thread Uri Guttman
> "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

Re: regular expression

2011-04-28 Thread Karl Kaufman
- 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

Re: Naming subroutines WAS: special method name start with "_"

2011-04-28 Thread Uri Guttman
> "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

Re: special method name start with "_"

2011-04-28 Thread Peter Scott
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

Re: regular expression

2011-04-28 Thread Irfan Sayed
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

Re: regular expression

2011-04-28 Thread Irfan Sayed
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:

Re: regular expression

2011-04-28 Thread Shawn H Corey
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

Re: regular expression

2011-04-28 Thread John W. Krahn
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

Re: regular expression

2011-04-28 Thread John W. Krahn
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

regular expression

2011-04-28 Thread Irfan Sayed
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

Re: Naming subroutines WAS: special method name start with "_"

2011-04-28 Thread Jeff Pang
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

Naming subroutines WAS: special method name start with "_"

2011-04-28 Thread Tim Lewis
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