Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: how to import::into v5.020

by ikegami (Patriarch)
on Nov 16, 2023 at 00:21 UTC ( [id://11155650]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use v5.20;
    
  2. or download this
    BEGIN { require v5.20; }
    no feature qw( :all );      # `use v5.10;`+
    use feature qw( :5.20 );    # `use v5.10;`+
    use strict;                 # `use v5.12;`+
    #use warnings;              # `use v5.35;`+
    
  3. or download this
    require v5.20;
    feature->unimport::out_of( $caller, ':all' );  # `use v5.10;`+
    feature->import::into( $caller, ':5.20' );     # `use v5.10;`+
    strict->import::into( $caller );               # `use v5.12;`+
    #warnings->import::into( $caller );            # `use v5.35;`+
    
  4. or download this
    $ perl -e'use v5.35; abc def;'
    Bareword found where operator expected (Do you need to predeclare "abc
    +"?) at -e line 1, near "abc def"
    ...
    Bareword found where operator expected (Do you need to predeclare "abc
    +"?) at -e line 1, near "abc def"
    syntax error at -e line 1, near "abc def"
    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://11155650]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (1)
As of 2024-04-15 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found