Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Not exactly new, but still fun

by archon (Monk)
on Mar 07, 2001 at 02:16 UTC ( [id://62598]=note: print w/replies, xml ) Need Help??


in reply to Re: Not exactly new, but still fun
in thread Not exactly new, but still fun

interesting.. perl 5.6.0 doesn't like it. it works in 5.005_03. the intent was for the comma to be used in scalar context. this should cause it to evaluate the search/replace on the LHS and then return $foo on the RHS.

Looks like they changed this behavior for several functions (ord, oct, etc).

5.005_03:

perl -le 'my $x = ord(1,2);print $x'; 50

5.6.0:

perl -le 'my $x = ord(1,2);print $x'; Too many arguments for ord at -e line 1, near "2)" Execution of -e aborted due to compilation errors.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://62598]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-19 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found