Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Syntax Perl Version support $c = () = $a =~ /\./g

by shmem (Chancellor)
on Jul 17, 2018 at 22:47 UTC ( [id://1218702]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    qwurx [shmem] ~> perl4 -e '$s="3.4.5";$r=()=$s=~/\./g;print$r,"\n"'
    Illegal item (LEXPR) as lvalue in file /tmp/perl-eEdymqE at line 1, ne
    +xt 2 tokens "/\./g;"
    Execution of /tmp/perl-eEdymqE aborted due to compilation errors.
    
  2. or download this
    qwurx [shmem] ~> perl4 -e '$s="3.4.5";$r=@r=$s=~/\./g;print$r,"\n"'
    2
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-24 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found