Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl -l
    
    ...
        print '! m/,/: ', $var !~ /,/ ? 'matches' : 'not matches';
        print '! y/,/,/: ', $var !~ y/,/,/ ? 'matches' : 'not matches';
    }
    
  2. or download this
    var = 'abc,d'
    m/,/: not matches
    ...
    y/,/,/: not matches
    ! m/,/: not matches
    ! y/,/,/: not matches