Help for this page

Select Code to Download


  1. or download this
     
    
    #!/usr/bin/perl
    ...
    printf("Using  /\\./ in split the answer is first $first, second $seco
    +nd\n");
    (my $first, my $second)=split /\\./, $foo;
    printf("Using  /\\\\./ in split the answer is first $first, second $se
    +cond\n");
    
  2. or download this
    Using a double quoted . the answer is first , second 
    Using an escaped  . the answer is first , second 
    ...
    Using  /./ in split the answer is first , second 
    Using  /\./ in split the answer is first data1, second txt
    Using  /\\./ in split the answer is first data1.txt, second