Email: bknpk@hotmail.com Phone: +972-54-7649119


V

 

ASIC/FPGA Design and Verification Out Source Services

Simple perl script to filter input from STDIN

  1. A simple script in perl to filter some characters. This is usually required in WEB based CGI scripts.
  2. The script is executed by:
    echo "try--- my filter" | perl /home/pini/bin/filter_inp.pl
  3. The script is simple and is shown below:
    #!/bin/perl

    $ok_chars = 'a-zA-Z0-9_';
    while (<STDIN>) {
      $_ =~ s/[^$ok_chars ]//go;
      print "$_\n";
    }#while

Contact me now at:

  ...


I would be happy to offer my services. Call ASAP !


Home

Download Area

SD slave with Samsung flash (k9f1208) (vhdl project).






Search This Site


Feedback This Site




new pages on this site