How does this work?

2011-04-27 Thread Owen
There is a person on the Internet using this to advise his email address. perl -le print scalar reverse qq/moc.liamg\100halbhalb/ I am intrigued as to how 001\ becomes @ What should I be reading? TIA Owen -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional

Re: How does this work?

2011-04-27 Thread John W. Krahn
Owen wrote: There is a person on the Internet using this to advise his email address. perl -le print scalar reverse qq/moc.liamg\100halbhalb/ I am intrigued as to how 001\ becomes @ \100 is interpolated as @ before the string is reversed. You could also write that as: perl -le print

Re: How does this work?

2011-04-27 Thread Ishwor Gurung
Hi Owen. G'day. On 27 April 2011 19:13, Owen rc...@pcug.org.au wrote: There is a person on the Internet using this to advise his email address.   perl -le print scalar reverse qq/moc.liamg\100halbhalb/ I am intrigued as to how 001\ becomes @ Try this :-) perl -le print scalar reverse

RE: How does this work?

2011-04-27 Thread Tim Lewis
If needed, there is a good complete table of the ASCII values at http://www.asciitable.com/ Tim -Original Message- From: Ishwor Gurung [mailto:ishwor.gur...@gmail.com] Sent: Wednesday, April 27, 2011 5:46 AM To: Perl Beginners Subject: Re: How does this work? Hi Owen. G'day. On 27

Re: How does this work?

2011-04-27 Thread Jeff Pang
2011/4/27 Tim Lewis twle...@sc.rr.com: If needed, there is a good complete table of the ASCII values at http://www.asciitable.com/ Good resource. BTW, what do Hx and Oct in the table mean? And what's the difference between them? Regards. -- To unsubscribe, e-mail:

Re: How does this work?

2011-04-27 Thread John W. Krahn
Jeff Pang wrote: 2011/4/27 Tim Lewistwle...@sc.rr.com: If needed, there is a good complete table of the ASCII values at http://www.asciitable.com/ Good resource. BTW, what do Hx and Oct in the table mean? And what's the difference between them? Hx = hexadecimal Oct = octal Hexadecimal is

How do I distinguish between no value and false? (was RE: How does defined work?)

2005-01-05 Thread Siegfried Heintze
, January 04, 2005 12:48 PM To: beginners@perl.org Subject: RE: How does defined work? Both Zero 0 and empty string are defined values in Perl, so if you want to test for values other than zero or empty string; then try something like thing: if ($nUserId) { # so 0, 0 or will fail here

Re: How do I distinguish between no value and false? (was RE: How does defined work?)

2005-01-05 Thread JupiterHost.Net
Siegfried Heintze wrote: How do I distinguish between no value and false? I thought defined was supposed to do that. defined is true if its defined and false if it is not defined its defined if its been given a value that is defined as '' or 0.. Try this out, uncommenting the different my $foo's

RE: How does defined work?

2005-01-04 Thread Babale Fongo
for User; } ||-Original Message- ||From: Siegfried Heintze [mailto:[EMAIL PROTECTED] ||Sent: Monday, January 03, 2005 6:58 AM ||To: beginners@perl.org ||Subject: How does defined work? || ||I am posting this query in beginners instead of beginners-cgi because I ||believe

Re: How does defined work?

2005-01-03 Thread John W. Krahn
Chris Devers wrote: On Sun, 2 Jan 2005, Siegfried Heintze wrote: I am posting this query in beginners instead of beginners-cgi because I believe this is a question about the defined statement and not the $q-param statement/function. I'm using this code: $q = new CGI; my $nUserId

How does defined work?

2005-01-02 Thread Siegfried Heintze
I am posting this query in beginners instead of beginners-cgi because I believe this is a question about the defined statement and not the $q-param statement/function. I'm using this code: $q = new CGI; my $nUserId = $q-param(userId) ; I was hoping the defined keyword would tell

Re: How does defined work?

2005-01-02 Thread Chris Devers
On Sun, 2 Jan 2005, Siegfried Heintze wrote: I am posting this query in beginners instead of beginners-cgi because I believe this is a question about the defined statement and not the $q-param statement/function. I'm using this code: $q = new CGI; my $nUserId =

Re: how does this work

2004-05-06 Thread Flemming Greve Skovengaard
Lino Iozzo wrote: where would i do that...what does that mean? I am using windows 2000 and unix. Lino [snip] OK, we'll take it step by step. FOR UNIX: cd to where your placed the archive, then run tar -zxvf module_name.tar.gz (for information about the tar flags see the man page for tar),

Re: how does this work

2004-05-06 Thread Flemming Greve Skovengaard
Lino Iozzo wrote: my apologies for beating this to death and i do appreciate your help...i have never had to do this. but i am making an effort to learn what is the man page? Manual page, try typing 'man tar'. this is what i downloaded: stable.tar.gz then there was also this: MD5; do you

Re: GPL - how does it work

2002-09-19 Thread fliptop
On Thu, 19 Sep 2002 at 08:20, Alex Agerholm opined: AA:I am writing a CGI application/script in Perl which I am going to sell AA:This application uses a few Perl modules (CGI.pm, Session.pm) which is AA:covered by the GPL. AA:How am I going to handle that, when I do not want to release my

Re: GPL - how does it work

2002-09-19 Thread Mat Harris
i believe perl itself is released under the GPL? and we have a firewall script that we compile to hide the source and then sell. we have never had any comeback from it. On Thu, Sep 19, 2002 at 07:23:46 -0400, fliptop wrote: On Thu, 19 Sep 2002 at 08:20, Alex Agerholm opined: AA:I am writing

Re: GPL - how does it work

2002-09-19 Thread zentara
On Thu, 19 Sep 2002 at 08:20, Alex Agerholm opined: AA:I am writing a CGI application/script in Perl which I am going to sell AA:This application uses a few Perl modules (CGI.pm, Session.pm) which is AA:covered by the GPL. AA:How am I going to handle that, when I do not want to release my

GPL - how does it work

2002-09-18 Thread Alex Agerholm
Hi, I am quite new to Perl and GPL, so I hope that someone can help me or direct me to where I can read about this. I am writing a CGI application/script in Perl which I am going to sell This application uses a few Perl modules (CGI.pm, Session.pm) which is covered by the GPL. How am I going to

Re: interesting JAPH, how does this work?

2002-01-11 Thread zentara
On 10 Jan 2002 18:10:20 -0500, [EMAIL PROTECTED] (Michael R. Wolf) wrote: [EMAIL PROTECTED] (Zentara) writes: I get it, so perl equals 285075 in a base24 number system, with the alphabet as it's units. 24? What's 24? There are _26_ letters in the alphabet! Or was 24 a base _11_ number?

interesting JAPH, how does this work?

2002-01-10 Thread zentara
Hi, I saw this on perlmonks.org. I can't understand how it works. Can anyone enlighten me? #!/usr/bin/perl my $A=a; for(0..285074){$A++;}print$A\n;

RE: interesting JAPH, how does this work?

2002-01-10 Thread Hanson, Robert
$A\n; # prints the new value Rob -Original Message- From: zentara [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 12:01 PM To: [EMAIL PROTECTED] Subject: interesting JAPH, how does this work? Hi, I saw this on perlmonks.org. I can't understand how it works. Can anyone

Re: interesting JAPH, how does this work?

2002-01-10 Thread Luke Bakken
C:\usersperl -e $A=qq(a);for(0..285074){$A++}print qq($A\n); perl C:\usersperl -e $A=qq(a);for(0..28){$A++}print qq($A\n); ad C:\usersperl -e $A=qq(a);for(0..2){$A++}print qq($A\n); d C:\usersperl -e $A=qq(a);for(0..1){$A++}print qq($A\n); c C:\usersperl -e $A=qq(a);for(0){$A++}print

RE: interesting JAPH, how does this work?

2002-01-10 Thread William.Ampeh
Try this: #!/opt/local/bin/perl #!/usr/bin/perl my $A=a; for(0..285074){ $A++; print $A:; } print\n\n$A\n; -- This reemphasizes a mail I just read from someone on this list about the need to write clearly readable codes. __

Re: interesting JAPH, how does this work?

2002-01-10 Thread Jon Molin
[EMAIL PROTECTED] wrote: Try this: #!/opt/local/bin/perl #!/usr/bin/perl my $A=a; for(0..285074){ $A++; print $A:; perhaps you should consider NOT printing that 285074 times? would kinda flood the term :) } print\n\n$A\n; --

RE: interesting JAPH, how does this work?

2002-01-10 Thread Stout, Joel R
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 9:47 AM To: Hanson, Robert Cc: [EMAIL PROTECTED]; 'zentara' Subject: RE: interesting JAPH, how does this work? Try this: #!/opt/local/bin/perl #!/usr/bin/perl my $A=a; for(0..285074

Re: interesting JAPH, how does this work?

2002-01-10 Thread zentara
On Thu, 10 Jan 2002 12:11:53 -0500, [EMAIL PROTECTED] (Robert Hanson) wrote: You can increment letters just like you increment numbers. $x = a; $x++; print $x; # prints b And the letter z incremented becomes aa. $x = z; $x++; print $x; # prints aa So here is the script... $A = a; # assign a

RE: interesting JAPH, how does this work?

2002-01-10 Thread Hanson, Robert
own addition and subtraction routines so that $a + $b added letters instead of number (or both letters and numbers). Rob -Original Message- From: zentara [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 3:51 PM To: [EMAIL PROTECTED] Subject: Re: interesting JAPH, how does

Re: interesting JAPH, how does this work?

2002-01-10 Thread Randal L. Schwartz
Zentara == Zentara [EMAIL PROTECTED] writes: Zentara I get it, so perl equals 285075 in a base24 number system, Zentara with the alphabet as it's units. There are only 24 letters in your alphabet? :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 [EMAIL

Re: interesting JAPH, how does this work?

2002-01-10 Thread Michael R. Wolf
[EMAIL PROTECTED] (Zentara) writes: I get it, so perl equals 285075 in a base24 number system, with the alphabet as it's units. 24? What's 24? There are _26_ letters in the alphabet! Or was 24 a base _11_ number? And if so, what extra digit were you using other than your fingers? :-)