Emanuele De Fazio wrote:
>
> Hi all
>
> how I can do for extract certain characters form a string?
>
> eg:
> $test = 'thenewworld';
>
> I want to print the 3rd, 4th and 5th character of the string
> (the word "new")
Probably the easiest is to use 'substr'.
$ext = substr $test, 3, 3;
Start reading perlfunc manpage/pod to understand what the core Perl
functions are.
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles http://www.todbe.com/
/ ) /--< o // // Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/_<_</_</_ http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web