Help for this page

Select Code to Download


  1. or download this
    c:\@Work\Perl\monks>perl -wMstrict -e
    "my $data = qq{cfg_a\ncfg_b[2:0]\ncfg_c[4:0]\ncfg_d\n};
    ...
    logic [2:0] cfg_b
    logic [4:0] cfg_c
    logic cfg_d
    
  2. or download this
    my $data= qq{cfg_a\ncfg_b[2:0]\ncfg_c[4:0]\ncfg_d\n};
    ...
    ...
    open my $fh, '<', \$data or die qq{opening string by reference: $!};