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/;
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?
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/
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
* [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
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
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:/
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/
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
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,
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
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
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
13 matches
Mail list logo