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

Re: Cyclomatic Complexity of Perl code

by stvn (Monsignor)
on Dec 08, 2004 at 20:02 UTC ( [id://413311]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "Hello World";
    
  2. or download this
    stevan% perl -MO=Concise test.pl
    6  <@> leave[1 ref] vKP/REFC ->(end)
    ...
    5     <@> print vK ->6
    3        <0> pushmark s ->4
    4        <$> const[PV "Hello World"] s ->5
    
  3. or download this
    if (shift) {
            print "Hello World";
    ...
    else {
            print "Goodbye World";
    }
    
  4. or download this
    a  <@> leave[1 ref] vKP/REFC ->(end)
    1     <0> enter ->2
    ...
    f              <@> print vK ->g
    d                 <0> pushmark s ->e
    e                 <$> const[PV "Goodbye World"] s ->f
    
  5. or download this
    sub start {
            print test();
    ...
    }
    
    print start();
    
  6. or download this
    perl -MO=Concise,-main,start,test test.pl
    main::start:
    ...
    k              <0> pushmark s ->l
    -              <1> ex-rv2cv sK/1 ->-
    l                 <#> gv[*start] s ->m
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://413311]
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: (2)
As of 2024-04-19 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found