Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Javascript to Perl = fail

by eyepopslikeamosquito (Chancellor)
on May 05, 2012 at 00:07 UTC ( #969004=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    c = c.charCodeAt(0);
    temp = c;
    c = String.fromCharCode(temp);
    line += c;
  2. or download this
    line += String.fromCharCode(c.charCodeAt(0)+1);
  3. or download this
    $line .= chr(ord($c)+1);
  4. or download this
    use strict;
    use warnings;
    print "1. line='$line' c='$c'\n";
    $line .= chr(ord($c)+1);
    print "2. line='$line' c='$c'\n";
  5. or download this
    1. line='hello' c='A'
    2. line='helloB' c='A'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://969004]
[1nickt]: I am sure I don't know about most of the stuff that is no longer controlled by humans. I do know that it's past the point of determining consumer pricing and into things that can kill me with blunt force!
[holli]: but is this really a problem 1nickt? Nobody knows how your human taxi drivers brain works either
[holli]: at least for cars, if the ai works better than a human on average, by all means let the machines drive

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-11-21 13:10 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (301 votes). Check out past polls.