Re: How to turn a user perl script in string format into actual perl commands that eval accepts in my script?

2008-10-19 Thread John W. Krahn
Zhao, Bingfeng wrote: Hello, Hello, I encounter following requirements: 1. accept customized perl sentences; 2. provide variables exchange between customized perl sentences and my routine. Here is a sample: [code] use strict; use warnings; # we use $_ to pass value in and out $_ = qw/foo/;

RE: How to turn a user perl script in string format into actual perl commands that eval accepts in my script?

2008-10-19 Thread Zhao, Bingfeng
I should use "eval EXPR", not "eval BLOCK". Thanks! -Original Message- From: Zhao, Bingfeng [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2008 11:13 To: Perl Beginners Subject: How to turn a user perl script in string format into actual perl commands that eval accepts in my script?

How to turn a user perl script in string format into actual perl commands that eval accepts in my script?

2008-10-19 Thread Zhao, Bingfeng
Hello, I encounter following requirements: 1. accept customized perl sentences; 2. provide variables exchange between customized perl sentences and my routine. Here is a sample: [code] use strict; use warnings; # we use $_ to pass value in and out $_ = qw/foo/; my $cmds = "print $_; $_ = qw/bar/

Re: using algorithm-permute

2008-10-19 Thread sisyphus
On Oct 17, 3:04 am, [EMAIL PROTECTED] (Sharan Basappa) wrote: . . > > #!/usr/bin/perl > use warnings; > use Algorithm::Permute; > my @array = (1..4); > Algorithm::Permute::permute { print "@array\n" } @array; use warnings; use strict; use Algorithm::Permute; my @array = (1..9); my $p = new Algori

Re: E-commerce script desired

2008-10-19 Thread Edi Stojicevic
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2008-10-17 19:32:15 -0700] wrote : > I am looking for a script (preferably Perl) that will require a > visitor to register (on a web registration page) and then be presented > with various successive affiliate website offers before concluding. You want to

Re: whats the location of my perl script

2008-10-19 Thread Chas. Owens
On Sun, Oct 19, 2008 at 08:51, Jeff Pang <[EMAIL PROTECTED]> wrote: > 2008/10/19 itshardtogetone <[EMAIL PROTECTED]>: >> Hi, >> What is the command to recall the drive location of my script? >> Thanks > > use Cwd; > see getcwd(); snip That will tell you where the script was run from (and maybe not

Re: whats the location of my perl script

2008-10-19 Thread Jeff Pang
2008/10/19 itshardtogetone <[EMAIL PROTECTED]>: > Hi, > What is the command to recall the drive location of my script? > Thanks use Cwd; see getcwd(); -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http:/

whats the location of my perl script

2008-10-19 Thread itshardtogetone
Hi, What is the command to recall the drive location of my script? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: error at using config::ini

2008-10-19 Thread Jenda Krynicky
The script very apparently doesn't use config::ini, it doesn't even use Config::Ini. It uses Config::IniFiles, which is a different module. ANd if the message is "Can't locate Config/IniFiles.pm in @INC" then the module is not installed. Fullstop. .read to hard It's !post top not do please, Also

Re: error at using config::ini

2008-10-19 Thread Jeff Pang
2008/10/19 mani kandan <[EMAIL PROTECTED]>: > If i am wrong please correct me, i presume that config::ini must be > installed in perl by while installing, if not what is the option for > checking that config::ini is installed or not. If you didn't install the module and you use it in the script,

Re: error at using config::ini

2008-10-19 Thread mani kandan
If i am wrong please correct me, i presume that config::ini must be installed in perl by while installing, if not what is the option for checking that config::ini is installed or not.   Regards Manikandan --- On Sun, 10/19/08, Jeff Pang <[EMAIL PROTECTED]> wrote: From: Jeff Pang <[EMAIL PROTEC

Re: error at using config::ini

2008-10-19 Thread Jeff Pang
2008/10/19 mani kandan <[EMAIL PROTECTED]>: > > Can't locate Config/IniFiles.pm in @INC (@INC contains: C:/Perl/lib > C:/Perl/site > /lib .) at cok.pl line 2. It has said, you must install Config::IniFiles before using it. -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: [E

error at using config::ini

2008-10-19 Thread mani kandan
Dear all Please see the below code, i am in course of studying Configuration in perl, when i came across writing a small code, a error message was:   Can't locate Config/IniFiles.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site /lib .) at cok.pl line 2. BEGIN failed--compilation aborted at cok