what is this?

2002-12-05 Thread Tom Allison
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]

What is this?

2001-06-06 Thread Sara Strader
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

^] : what is this?

2002-02-26 Thread GoodleafJ
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

Re: what is this?

2002-12-05 Thread simran
>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

Re: what is this?

2002-12-06 Thread Tom Allison
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-

Re: what is this?

2002-12-06 Thread simran
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+"$@

what is this error?

2003-02-27 Thread Dilip v
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

What is this doing ??

2003-06-03 Thread T.S. Ravi Shankar
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 ??

Re: What is this?

2001-06-06 Thread Bruno Veldeman
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

Re: What is this?

2001-06-06 Thread Michael Fowler
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

Re: What is this?

2001-06-08 Thread SunDog
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 ===

help - what is this?

2001-08-21 Thread Quang Bui
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

%a = {}; What is this?

2007-11-05 Thread mk834tt
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

what is this called $/

2001-11-20 Thread Leon
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 ==> $/

what is this data structure?

2004-01-16 Thread Jack Chen
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

Re: what is this error?

2003-02-27 Thread R. Joseph Newton
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

RE: what is this error?

2003-02-28 Thread Dilip v
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.

Re: what is this error?

2003-02-28 Thread R. Joseph Newton
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

RE: What is this doing ??

2003-06-03 Thread Bob Showalter
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

Re: help - what is this?

2001-08-21 Thread Kevin Meltzer
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

Re: help - what is this?

2001-08-21 Thread Mel Matsuoka
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

Re: help - what is this?

2001-08-21 Thread Quang Bui
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 >

what is this syntax mean?

2002-04-20 Thread bob ackerman
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 => '

Re: %a = {}; What is this?

2007-11-05 Thread Tom Phoenix
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

Re: what is this called $/

2001-11-20 Thread Peter Scott
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

Re: what is this called $/

2001-11-20 Thread nafiseh saberi
. - 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

Re: what is this called $/

2001-11-21 Thread Leon
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

WTF Naver-Mailer - WHAT IS THIS

2003-01-30 Thread Paul Kraus
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

What is this error message, please?

2003-02-12 Thread Gan Uesli Starling
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

Re: what is this data structure?

2004-01-16 Thread Randy W. Sims
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

Re: what is this data structure?

2004-01-16 Thread Jack Chen
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

RE: what is this data structure?

2004-01-16 Thread Charles K. Clarkson
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

Re: what is this data structure?

2004-01-17 Thread Dan Anderson
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

Re: what is this data structure?

2004-01-17 Thread James Edward Gray II
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

Re: what is this data structure?

2004-01-17 Thread Dan Anderson
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

Re: what is this data structure?

2004-01-17 Thread Randy W. Sims
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'),

Re: what is this data structure?

2004-01-17 Thread James Edward Gray II
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'),

Re: what is this data structure?

2004-01-17 Thread Dan Anderson
> 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'

Re: what is this data structure?

2004-02-05 Thread R. Joseph Newton
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

Re: what is this syntax mean?

2002-04-21 Thread Jenda Krynicky
-> 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

Re: What is this error message, please?

2003-02-13 Thread Rob Dixon
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

What is this piesce of code doing ?

2004-02-03 Thread Nilay Puri, Noida
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

What is this called: ($myvar->{otherid}) ? 'stringA' : 'stringB';

2003-11-20 Thread Jeff Kowalczyk
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,

Re: What is this piesce of code doing ?

2004-02-03 Thread Andrew Gaffney
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/

Re: What is this piesce of code doing ?

2004-02-03 Thread Eternius
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

Re: What is this called: ($myvar->{otherid}) ? 'stringA' : 'stringB';

2003-11-20 Thread Morbus Iff
>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 &

Re: What is this called: ($myvar->{otherid}) ? 'stringA' : 'stringB';

2003-11-20 Thread Kevin Old
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})

Re: What is this called: ($myvar->{otherid}) ? 'stringA' : 'stringB';

2003-11-20 Thread drieux
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

Re: What is this called: ($myvar->{otherid}) ? 'stringA' : 'stringB';

2003-11-20 Thread John W. Krahn
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' : &#x

Re: What is this called: ($myvar->{otherid}) ? 'stringA' : 'stringB';

2003-11-22 Thread R. Joseph Newton
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

What is this string type? How to play with?

2002-07-10 Thread Connie Chan
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

Re: What is this string type? How to play with?

2002-07-10 Thread Felix Geerinckx
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

Re: What is this string type? How to play with?

2002-07-10 Thread Connie Chan
> > 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

Re: What is this string type? How to play with?

2002-07-10 Thread Felix Geerinckx
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

Re: What is this string type? How to play with?

2002-07-11 Thread perl-dvd
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

RE: What is this string type? How to play with?

2002-07-11 Thread Nikola Janceski
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 >

Re: What is this string type? How to play with?

2002-07-11 Thread Connie Chan
$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

Re: What is this string type? How to play with?

2002-07-11 Thread perl-dvd
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

Re: What is this string type? How to play with?

2002-07-11 Thread perl-dvd
- 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( \

Re: What is this string type? How to play with?

2002-07-11 Thread perl-dvd
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

What is this doing: eval 'exec /usr/bin/perl -T -w -S $0 ${1+"$@"}' if 0;

2004-08-07 Thread JupiterHost.Net
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;

Re: What is this doing: eval 'exec /usr/bin/perl -T -w -S $0 ${1+"$@"}' if 0;

2004-08-09 Thread Jose Alves de Castro
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

Re: What is this doing: eval 'exec /usr/bin/perl -T -w -S $0 ${1+"$@"}' if 0;

2004-08-09 Thread JupiterHost.Net
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,