Help for this page

Select Code to Download


  1. or download this
    my $pi = "3.1415";
    my $substr = substr $pi, 0, 4;
    print "\substring: ".$substr."\n"; # $substr: 1.14
    
  2. or download this
    #!/usr/bin/perl
    use bignum;
    ...
    inf
    NaN
    1.15792089237316e+76