Home
Perl
Array
CGI
Class
Data Type
Database
File
GUI
Hash
Language Basics
Network
Regular Expression
Report
Statement
String
Subroutine
System Functions
Win32
XML
Menu
Replace « String « Perl
Perl
String
Replace
1.
Replace first 5 characters of $string with 'bye' and assign substring that was replced to $substring
2.
Replace function based on substr function
3.
Replace function based on the length