Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my @strs = ("filename1.txt\0", "filename2\0.txt", "filename3.txt");
    
    /\0/ && ((print "Null char detected in >$_<"), print "\n") for @strs;
    
  2. or download this
    Null char detected in >filename1.txt
    Null char detected in >filename2