Wei, Alice J. wrote:
Hi,
About the three param's that I am using in my code, all of these are meant to
be passed on using GET. My problem is that I am not sure if the reason why
http://192.168.10.63/file_linux.php?id=123 prints out something like: Cannot
create directory Cannot create direc
[ Please do not top-post!! ]
Wei, Alice J. wrote:
About the three param's that I am using in my code, all of these are
meant to be passed on using GET. My problem is that I am not sure if
the reason why http://192.168.10.63/file_linux.php?id=123 prints out
something like: Cannot create directo
Alice
-Original Message-
From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2008 9:49 PM
To: beginners@perl.org
Subject: Re: Passing Variables to Perl through HTTP
Wei, Alice J. wrote:
> This may be a very dumb question, but I am having the problem of
>
Wei, Alice J. wrote:
This may be a very dumb question, but I am having the problem of
putting the variables on the url through Perl to get it to execute
the following mkdir command.
#!/usr/bin/perl -w
use CGI qw(:standard -debug);
use CGI::Carp qw(fatalsToBrowser);
print "Content-type: text/
2007/9/3, sivasakthi <[EMAIL PROTECTED]>:
> Hi All,
>
> I have tested the following script for reading the log files and write
> in to the file,
>
>
> #!/usr/bin/perl
> use strict;
> use warnings;
> use File::Tail;
> my $file=File::Tail->new("/log/path");
> while (defined(my $line=$file->read))
> {
On Aug 18, Eliyah Kilada said:
Do anyone know how to pass the perl variables to the system in order to be
used later?!
A process cannot modify its parent's environment. You can set environment
variables to be used during the Perl program that are visible to the Perl
program's child processe
On Aug 18, 2005, at 13:38, Eliyah Kilada wrote:
Do anyone know how to pass the perl variables to the system in
order to be used later?!
Perl offers built-in support for environment variables via the %ENV
hash:
% cat foo.pl
$ENV{FOO} = "foo";
system q(echo $FOO);
% perl foo
DiGregorio, Dave wrote:
Is there a way to pass variables from a perl script to know when it ends to
VB?
Same way you pass a kidney stone ;)
Sorry I couldn't resist ;p
Seriously though what have you tried?
how is Perl communicating with VB?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
Jasmine wrote:
> Hi
>
> Is there any way to pass variables into MySQL statements for execution? I m
> using the DBI package. Thanks!
I think the problem has more to do with the join function
> Heres my snippet and it doesnt work.
> dbconnect();
> prepare the query
here's one i wrote a while back; it builds the arguments dynamically
depending on what parameters cgi passes back from the page to the
script. the biggest problem probably is to make sure you have all the
quotes accounted for.
the variables being passed here are only the "where" clauses but the
s
Hi -
On 1 Apr 2003 at 1:20, Jasmine wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> Hi
>
> Is there any way to pass variables into MySQL statements for execution? I m
> using the DBI package. Thanks!
>
> Heres my snippet and it doesnt work.
> dbconnect();
>
I always like to use the Mail::Mailer module
instead...
#
use Mail::Mailer;
$mailer = Mail::Mailer->new("sendmail");
$mailer->open({ From=> $from_address,
To => $to_address,
Subject => $subject,
Jeff 'Japhy' Pinyan wrote:
>
> On Dec 18, Lance Prais said:
>
> >I tried to use '((substr($line, 42, 7)' which the text I want to include but
> >it did not show the output.
>
> You can't put code inside a quoted string and expect it to evaluate.
"@{[ substr $line, 42, 7 ]}"
:-)
John
--
use
($hash{$variable_name}
) use $variable_name
-Ron
> -Original Message-
> From: Yacketta, Ronald [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 07, 2001 19:23
> To: [EMAIL PROTECTED]
> Subject: RE: RE: Passing variables
>
>
> > > Ron, I think you meant
--- Lance Prais <[EMAIL PROTECTED]> wrote:
> I am unseeing the following piece of code to send email. In order for this
> email to be generated there needs to be an error in my script.
>
> use Mail::Sendmail;#Send and email if there are errors
> %mail = ( To => '[EM
On Dec 18, Lance Prais said:
>I tried to use '((substr($line, 42, 7)' which the text I want to include but
>it did not show the output.
You can't put code inside a quoted string and expect it to evaluate.
%mail = (
To => '[EMAIL PROTECTED]',
From=> '[EMAIL PROTECTED]',
This may sound too simple but this is the way I would have done it.
In the front-end script, initialize the variables
$VAR_1="";
$VAR_2="";
Then in the child scripts, you can change these variable
$VAR_1="foo1";
$VAR_2="foo2";
If you use strict (what happens?). I have not tried it yet.
you're
> heading into administrative territory and
> > that's not my strong suit. Someone else on the list is
> probably better prepared to answer this.
> >
> > Cheers,
> > Curtis
> >
> > --- "Yacketta, Ronald" <[EMAIL PROTECTED]&
Sent this to the wrong list! Sorry.
--- Curtis Poe <[EMAIL PROTECTED]> wrote:
> Date: Fri, 7 Dec 2001 15:30:59 -0800 (PST)
> From: Curtis Poe <[EMAIL PROTECTED]>
> Reply-to: [EMAIL PROTECTED]
> Subject: Fwd: RE: Passing variables
> To: CGI Beginners <[EMAIL PROT
--- "Yacketta, Ronald" <[EMAIL PROTECTED]> wrote:
> Folks,
>
> I have just completed a front-end enduser script that will take numerous
> input values that
> need to be passed onto other perl scripts depending on the user input.
>
> Is there a clean way (other than command line) to pass on the v
the best way is to bild a modul and include it with use
dont forget to export the vars.
Take a look on exporter modul
hope it helps
Martin
Natalia Vasilchenko schrieb:
>
> Hello, all!
>
> I have some variables defined in file
>
>
>
> $user_ip = $ENV{'REMOTE_ADDR'};
>
> $user_name = $EN
Hi,
> How do I get this to work?
well, let's try...
> package main;
> use Simple.pm;
if you define the package in the same file, you dont do 'use Simple': perl
will then look in @INC for a 'Simple.pm' file,
which you dont have.
ALSO the syntax is 'use ModuleName' - so no '.pm' at the end!
>
There's a couple of problems that sound get you started. The first I
see is that @_ is an array containing everything that was passed in. So
when you did
@parms = @_;
The values of each element of @parms are as follows
$parms[0] # first parameter which was $email
$par
> @parms = @_;
> ($user, $user_list, $tag) = split /,/, $parms;
Did you mean:
my($user, $user_list, $tag) = @_;
Try using:
use strict;
at the top of every script. The problem is that @parms is not $parms.
In fact, $parms is undefined, and use strict would point out this
error. Yo
Works like a charm
Thanks
At 09:57 PM 4/28/01 -0500, you wrote:
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>On Sun, 29 Apr 2001, Dave Watkins wrote:
>
> > Hi All
> >
> > I am trying to pass a variable, a hash table and an array into a subroutine
> > like so
> >
> > subroutine($variable,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sun, 29 Apr 2001, Dave Watkins wrote:
> Hi All
>
> I am trying to pass a variable, a hash table and an array into a subroutine
> like so
>
> subroutine($variable, %hash, @array);
>
> and pick it up like so
>
> sub subroutine {
> my($variable
subroutine($variable, %hash, @array); ->subroutine($variable, \%hash,
\@array);
sub subroutine {
my($variable, $hash, $array) = @_;
so to reference use : $hash->{xxx} or $array->[0]. etc.
Wags ;)
-Original Message-
From: Dave Watkins [mailto:[EMAIL PROTECTED]]
Sent: Saturday, Ap
27 matches
Mail list logo