Help for this page

Select Code to Download


  1. or download this
    s{Password=\Q$password\E}{Password=$newpass} if $answer =~ /y/i;
    
  2. or download this
    my $sentence = 'The quick brown fox jumped over the lazy dog';
    my $substring = 'quick.*?fox';
    $sentence =~ s{\Q$substring\E}{big bad wolf};
    
  3. or download this
    #!/usr/bin/perl
    
    ...
        or die "Cannot untie file '$filename': $!";