Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: OS agnostic C&P CLI snippets with -E

by kcott (Archbishop)
on Oct 18, 2021 at 19:47 UTC ( [id://11137700]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\Users\ken\tmp>perl -v
    
    This is perl 5, version 26, subversion 3 (v5.26.3) built for MSWin32-x
    +64-multi-thread
    ...
    
  2. or download this
    C:\Users\ken\tmp>more pm_11137651_os_agnostic.pl
        use 5.026;
    ...
        no warnings "experimental::declared_refs";
        say ref my \$scalar;
        say ref my \@array;
    
  3. or download this
    C:\Users\ken\tmp>perl pm_11137651_os_agnostic.pl
    SCALAR
    ARRAY
    
  4. or download this
    ken@titan ~/tmp
    $ cat pm_11137651_os_agnostic.pl
    ...
        no warnings "experimental::declared_refs";
        say ref my \$scalar;
        say ref my \@array;
    
  5. or download this
    ken@titan ~/tmp
    $ perl pm_11137651_os_agnostic.pl
    SCALAR
    ARRAY
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-11-05 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    chatterbot is...






    Results (27 votes). Check out past polls.