eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if 0; # not running under some shell
-
What does this do and why?
--
mummy, n.:
An Egyptian who was pressed for time.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Is this a Perl Script? If not, does anyone know what it is?
File newnum:
1: r+ERROR: Tried to open %s . %s. (error number %d)
2: ./newnum.lst-d%s %d
3: PLEASE ENTER EMPLOYEES' FULL NAME: "%s", Is this correct [y/n] :
4: "%s" is already in list file with number %d.
5:
6: New number
Sorting through a dump from FileMaker Pro (which, let me digress to
mention, I _hate_) trying to wedge the stuff in a little
checking/reconciliation script. I ran it through dos2unix, but still find a
character that looks like ^] all over the place. What is this? Tried a few
subs in vi and perl
>From the docs...
-S makes perl use the PATH environment variable to search
for the script (unless the name of the script starts
with a slash). Typically this is used to emulate #!
startup on machines that don't support #!, in the fol-
lowing m
simran wrote:
From the docs...
-S makes perl use the PATH environment variable to search
for the script (unless the name of the script starts
with a slash). Typically this is used to emulate #!
startup on machines that don't support #!, in the fol-
perldoc perlrun
On Fri, 2002-12-06 at 22:39, Tom Allison wrote:
> simran wrote:
> >>From the docs...
> >
> >
> > -S makes perl use the PATH environment variable to search
> >
> >
> >
> >
> > On Fri, 2002-12-06 at 12:49, Tom Allison wrote:
> >
> >>eval 'exec /usr/bin/perl -S $0 ${1+"$@
Hi all,
I am totally new to PERL.I have a perl
programm(runjava.pm) to load data in to an
application. the relevant code is as follows
===
sub jdk12Command ($$)
{
my ($vmProgram, $vmArguments,
$programLibraryPath, $programClassPath,
$programClas
Hi all :
I see these lines at the very beginning lines of a perl program. Could
anyone explain what this is doing ??
eval '(exit $?0)' && eval 'exec perl $PERL_OPTIONS $0 ${1+"$@"}'
& eval 'exec perl $PERL_OPTIONS $0 $argv:q'
if 0;
In what way "eval" help here in traping the errors ??
Hi
does not look like perl to me!
Bruno
- Original Message -
From: "Sara Strader" <[EMAIL PROTECTED]>
To: "Perl List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2001 8:02 PM
Subject: What is
On Wed, Jun 06, 2001 at 12:02:37PM -0600, Sara Strader wrote:
> Is this a Perl Script? If not, does anyone know what it is?
>
> File newnum:
>
>
> 1: r+ERROR: Tried to open %s . %s. (error number %d)
> 2: ./newnum.lst-d%s %d
> 3: PLEASE ENTER EMPLOYEES' FULL NAME: "%s", Is this corre
Hi Sara,
This one is interesting ...
It seems very much to be a template though ...
that is .. something a Perl program would use to parse or format
this is sometimes used to format Form input on Web servers ...
hope this helps ...
SunDog
===
I know this is a perl mailing list, but HTML is somewhat related
since they're both used in web development.
My instructor took points off of my HTML project because he
said the following does not count as a body tag. What do you guys
think?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
I'm playing around with references and wondered what this was:
%a = {};
%a seems to be a reference to nothing?
A dump gives: ("HASH(0x18737e4)", undef)
I've seen the construct before somewhere and wonder how it's used.
I have a handle on $p = {} and its use in objects. This %a = {}
has me myst
I know of the following :-
$" = '|interpolation-seperator|';
$, = '|seperator|';
$\ = '\n endOfLine';
my @a = qw (hi how are you);
print "@a\n";
My question is what is this called ==> $/
Hi,
I don't know how to work with this data structure:
my @array = ((a => 'appple'),
(b => 'tree'),
(c => 'chair'));
when I do:
print @array;
I get no output.
when I do:
use Data::Dumper;
print Dumper(@array);
I got the conten
Dilip v wrote:
> Hi all,
> Try 'set
> JDK122ROOT=/jdk1.2.2' at bin/perl/RunJava.pm line 305.
> ...
> Try \'set JDK122ROOT=/jdk1.2.2\' at b...') called at
> bin/perl/RunJava.pm line 305
What happened when you followed the advice offered above?
Joseph
--
To unsubscribe, e-mail: [EMAIL PR
EMAIL PROTECTED]
Sent: 28 February 2003 06:57
To: Dilip v
Cc: [EMAIL PROTECTED]
Subject: Re: what is this error?
Dilip v wrote:
> Hi all,
> Try 'set
> JDK122ROOT=/jdk1.2.2' at bin/perl/RunJava.pm line
305.
> ...
> Try \'set JDK122ROOT=/jdk1.2.2\' at b.
Dilip v wrote:
> If I do "set JDK122ROOT=c/jdk1.2.2
Try:
set JDK122ROOT=c:/jdk1.2.2
Drive specifiers in DOS/Windows always take colons. The forward slashes are probably
alright, though, if you are using a recent version of Perl.
Let us know if that helps.
--
To unsubscribe, e-mail: [EMAIL PR
T.S. Ravi Shankar wrote:
> Hi all :
>
> I see these lines at the very beginning lines of a perl program.
> Could anyone explain what this is doing ??
>
> eval '(exit $?0)' && eval 'exec perl $PERL_OPTIONS $0 ${1+"$@"}'
> & eval 'exec perl $PERL_OPTIONS $0 $argv:q'
> if 0;
>
> In what wa
Hi Quang,
This is not the appropriate list for HTML questions. HTML and Perl, if
related, would be distant cousins, twice removed, and adopted. Please
search the web for a more appropriate place to find an answer. Thanks.
Cheers,
Kevin
On Tue, Aug 21, 2001 at 04:05:33PM -0400, Quang Bui ([EMAIL
At 04:05 PM 08/21/2001 -0400, Quang Bui wrote:
>I know this is a perl mailing list, but HTML is somewhat related
>since they're both used in web development.
Java, Python and C++ are all used in "web development" as well, but
questions about these technologies are very obviously off-topic here. A
OK, people. I get the clue after receiving a message from Kevin Meltzer.
You can stop now. No more html questions, are you happy now?
On Tue, 21 Aug 2001, Mel Matsuoka wrote:
> At 04:05 PM 08/21/2001 -0400, Quang Bui wrote:
> >I know this is a perl mailing list, but HTML is somewhat related
>
x27;result'?
use SOAP::Lite;
print SOAP::Lite
-> proxy('http://services.soaplite.com/hibye.cgi')
-> uri('http://www.soaplite.com/Demo')
-> hi()
-> result;
and then what is this syntax?:
use SOAP::Lite +autodispatch =>
uri => '
On 11/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm playing around with references and wondered what this was:
>
> %a = {};
The right side of the assignment is a reference to an empty anonymous
hash. But you're assigning that (as a one-element list) to the hash
%a, which needs key-valu
At 01:54 PM 11/21/01 +0800, Leon wrote:
>I know of the following :-
>
>$" = '|interpolation-seperator|';
>$, = '|seperator|';
>$\ = '\n endOfLine';
>my @a = qw (hi how are you);
>print "@a\n";
>
>My question is
.
- Original Message -
From: "Leon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 21, 2001 09:24 AM
Subject: what is this called $/
> I know of the following :-
>
> $" = '|interp
does not get rid of \n but will get rid of testing
print (@array,"\n") ;
print (@array2,"\n");
--- results
helloworldtesting123
hello
world testing2
123
- end ---
Thank You !
--- end of msg ---
- Original Message -
From: nafiseh saberi
To: Leon ; [EMAIL PROTECTED]
Se
Everytime I send a message to the perl list
I get a message like this form some Naver mailer. What is this and how
do I stop it.
Header
--
Received: from [211.218.150.104] by meemail1.pelsupply.com (NTMail 7.00.
0018/NU0133.02.dab8b08b) with ESMTP id przslaaa for
[EMAIL PROTECTED]; Thu, 30
I see hundreds of these error messages from -w switch...
Character in "C" format wrapped at ./FYBB_DirTree.pm line 867.
...here is line 867...
$buf = pack( 'C*', @{ $bufRfs[0] } );
...but my program (an encryption routine) works jus fine. I
packing with C* only because of file length being rand
On 1/16/2004 11:03 AM, Jack Chen wrote:
Hi,
I don't know how to work with this data structure:
my @array = ((a => 'appple'),
(b => 'tree'),
(c => 'chair'));
when I do:
print @array;
I get no output.
when I do:
use Data::Dumper;
print Du
Hi Randy,
Thanks for reply!
It is strage. When I tried the script on another machine, it works the way
you described. Anything wrong about my perl or my OS (Linux 8)?
Jack
On Fri, 16 Jan 2004, Randy W. Sims wrote:
> On 1/16/2004 11:03 AM, Jack Chen wrote:
>
> > Hi,
> >
> > I don't kn
Jack Chen <[EMAIL PROTECTED]> wrote:
:
: I don't know how to work with this data structure:
:
: my @array = ((a => 'appple'),
: (b => 'tree'),
:(c => 'chair'));
:
: when I do:
:
: print @array;
:
: I get no output.
It pri
On Fri, 2004-01-16 at 11:03, Jack Chen wrote:
> Hi,
>
> I don't know how to work with this data structure:
>
> my @array = ((a => 'appple'),
> (b => 'tree'),
>(c => 'chair'));
That "array" is an array of hashes.
-Dan
--
To u
On Jan 17, 2004, at 2:02 PM, Dan Anderson wrote:
On Fri, 2004-01-16 at 11:03, Jack Chen wrote:
Hi,
I don't know how to work with this data structure:
my @array = ((a => 'appple'),
(b => 'tree'),
(c => 'chair'));
That "array" is an array of
On Sat, 2004-01-17 at 15:12, James Edward Gray II wrote:
> On Jan 17, 2004, at 2:02 PM, Dan Anderson wrote:
>
> > On Fri, 2004-01-16 at 11:03, Jack Chen wrote:
> >> Hi,
> >>
> >> I don't know how to work with this data structure:
> >>
> >> my @array = ((a=> 'appple'),
> >> (b
On 1/17/2004 3:16 PM, Dan Anderson wrote:
On Sat, 2004-01-17 at 15:12, James Edward Gray II wrote:
On Jan 17, 2004, at 2:02 PM, Dan Anderson wrote:
On Fri, 2004-01-16 at 11:03, Jack Chen wrote:
Hi,
I don't know how to work with this data structure:
my @array = ((a => 'appple'),
On Jan 17, 2004, at 2:16 PM, Dan Anderson wrote:
On Sat, 2004-01-17 at 15:12, James Edward Gray II wrote:
On Jan 17, 2004, at 2:02 PM, Dan Anderson wrote:
On Fri, 2004-01-16 at 11:03, Jack Chen wrote:
Hi,
I don't know how to work with this data structure:
my @array = ((a => 'appple'),
> You're terminology is a little confusing, but I think you have the
> right idea.
For the benefit of the original poster:
The => symbol is usually used to signify a hash and automatically quote
the key to the left of it. I.e.:
my %hash1 = (
foo => 'bar',
bar => 'baz'
Dan Anderson wrote:
> However a hash is just an even valued list, so %hash1 is the same as
> %hash2:
> So that instead of accessing elements by $hash1{foo} you'd access them
> by $hash1->{foo}.
>
> I think I've successfully improved, right?
Yes. You're closer, but still a little off.:
> However
-> result;
Yes, exactly. You could rewrite it as
$obj1 = SOAP::Lite->proxy('http://services.soaplite.com/hibye.cgi');
$obj2 = $obj1->uri('http://www.soaplite.com/Demo');
$obj3 = $obj2->hi();
print $obj3->result;
> and then what is this syntax?:
> use S
Gan Uesli Starling wrote:
> I see hundreds of these error messages from -w switch...
>
> Character in "C" format wrapped at ./FYBB_DirTree.pm line 867.
>
> ...here is line 867...
>
> $buf = pack( 'C*', @{ $bufRfs[0] } );
>
> ...but my program (an encryption routine) works jus fine. I
> packing with
Hi All,
I have samll piece of code in which a subroutine is calles in unusual way .
#/usr/local/bin/perl
BEGIN {
$ENV{ORACLE_HOME} = '/home/oracle/app/oracle/product/8.0.5';
}
my $VENTURA_BASEDIR = '/home/www/highered/mdb';
my $FTP_PATH = 'ftp://ftp.prenhall.com/incoming/booksellers';
u
I'm not yet able to read certain parts of perl code. What is this
comparison/alternation after the hash lookup on 'otherid' called, and what
does the code do?
$myvar->{id} = ($myvar->{otherid}) ? 'stringA' : 'stringB';
Thanks.
--
To unsubscribe,
Nilay Puri, Noida wrote:
Hi All,
I have samll piece of code in which a subroutine is calles in unusual way .
#/usr/local/bin/perl
BEGIN {
$ENV{ORACLE_HOME} = '/home/oracle/app/oracle/product/8.0.5';
}
my $VENTURA_BASEDIR = '/home/www/highered/mdb';
my $FTP_PATH = 'ftp://ftp.prenhall.com/
Nilay Puri wrote:
Hi All,
I have samll piece of code in which a subroutine is calles in unusual way .
#/usr/local/bin/perl
BEGIN {
$ENV{ORACLE_HOME} = '/home/oracle/app/oracle/product/8.0.5';
}
my $VENTURA_BASEDIR = '/home/www/highered/mdb';
my $FTP_PATH = 'ftp://ftp.prenhall.com/incomin
>I'm not yet able to read certain parts of perl code. What is this
>comparison/alternation after the hash lookup on 'otherid' called, and what
>does the code do?
>
> $myvar->{id} = ($myvar->{otherid}) ? 'stringA' : 'stringB';
It's a &
On Thu, 2003-11-20 at 15:18, Jeff Kowalczyk wrote:
> I'm not yet able to read certain parts of perl code. What is this
> comparison/alternation after the hash lookup on 'otherid' called, and what
> does the code do?
>
> $myvar->{id} = ($myvar->{otherid})
On Thursday, Nov 20, 2003, at 12:18 US/Pacific, Jeff Kowalczyk wrote:
I'm not yet able to read certain parts of perl code. What is this
comparison/alternation after the hash lookup on 'otherid' called, and
what
does the code do?
$myvar->{id} = ($myvar->{otherid}) ? 'st
Jeff Kowalczyk wrote:
>
> I'm not yet able to read certain parts of perl code. What is this
> comparison/alternation after the hash lookup on 'otherid' called, and what
> does the code do?
>
> $myvar->{id} = ($myvar->{otherid}) ? 'stringA' :
Jeff Kowalczyk wrote:
> I'm not yet able to read certain parts of perl code. What is this
> comparison/alternation after the hash lookup on 'otherid' called, and what
> does the code do?
>
> $myvar->{id} = ($myvar->{otherid}) ? 'stringA' : 'stri
Hi all,
With get method from form, we always see that the
$ENV{QUERY_STRING} like this :
&message=%20%2F%15+...&...
btw, what is the name of that string in types of ? Escape ? Unicode ?
With simple tr/// and s///, I can get back what exact the input
is, but, how can I make a the input bac
on Wed, 10 Jul 2002 22:21:55 GMT, Connie Chan wrote:
> With get method from form, we always see that the
> $ENV{QUERY_STRING} like this :
> &message=%20%2F%15+...&...
>
> btw, what is the name of that string in types of ? Escape ? Unicode ?
>
> With simple tr/// and s///, I can get back wh
>
> use URI::Escape;
>
> my $string="&message=%20%2F%15+...&...";
> print uri_unescape($string);
>
OO!!... Thanks a lot, I got the hint now !! =)
but I think what I want is uri_escape(uri_unescape($string))
Anyway, is that kind of string called "Escape String" ?
Rgds,
Conni
on Wed, 10 Jul 2002 22:50:56 GMT, Connie Chan wrote:
> OO!!... Thanks a lot, I got the hint now !! =)
> but I think what I want is uri_escape(uri_unescape($string))
>
> Anyway, is that kind of string called "Escape String" ?
An "URI Escaped string", to be correctly (hence the name of the mudul
ginal Message -
From: "Connie Chan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, July 10, 2002 4:21 PM
Subject: What is this string type? How to play with?
Hi all,
With get method from form, we always see that the
$ENV{QUERY_STRING} l
Connie Chan; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: What is this string type? How to play with?
>
>
> Oops, let me make one small revision to my code:
>
> if (exists($form_vars{$name})) { # if this is the first of
> this form input name.
>
> should be
>
$name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
Hmmm... what is this purpose ? $name is probrably going to be a
var's name, how come it goes with a blank ? and with an assumption
that the $name is coming as a URI escaped string ?
> .. Keep in mind, you may ha
se days. It handles both GET and POST as well as command line
parameters
(Along with post [MIME], I also accept files). It also works on Linux and Windows.
Its also much
faster than CGI.pm because its strait to the point, the only thing its intended to do
is retrieve
data and give it in a useable for
-
From: <[EMAIL PROTECTED]>
To: "Connie Chan" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, July 11, 2002 11:53 AM
Subject: Re: What is this string type? How to play with?
Connie,
> ; has no problem, why you would like to escape( \
To: "Connie Chan" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, July 11, 2002 11:53 AM
Subject: Re: What is this string type? How to play with?
Connie,
> ; has no problem, why you would like to escape( \ )it ?
I know that = and ; don't
I found this code in a script right after the she-bang line:
eval 'exec /usr/bin/perl -T -w -S $0 ${1+"$@"}'
if 0; # not running under some shell
What is it doing?
Its like its executing itself again, but why?
What the heck is: ${1+"$@"} ??
Wouldn't the eval never get done because of the if 0;
On Sun, 2004-08-08 at 04:06, JupiterHost.Net wrote:
> I found this code in a script right after the she-bang line:
>
> eval 'exec /usr/bin/perl -T -w -S $0 ${1+"$@"}'
> if 0; # not running under some shell
>
> What is it doing?
Hi.
From `perldoc perlrun`, under -S :
Typically this is used
Jose Alves de Castro wrote:
On Sun, 2004-08-08 at 04:06, JupiterHost.Net wrote:
I found this code in a script right after the she-bang line:
eval 'exec /usr/bin/perl -T -w -S $0 ${1+"$@"}'
if 0; # not running under some shell
What is it doing?
Hi.
From `perldoc perlrun`, under -S :
Hello Jose,
63 matches
Mail list logo