Using strstr in POSIX : strstr « String « Perl






Using strstr in POSIX

    

use POSIX;

$text = "Here's the text!";

print "The substring starts at position " . strstr $text, 'text';

   
    
    
    
  








Related examples in the same category