Re: how work with split function in perl
Devashish Saha wrote:
> iam having a text file contaning a data just like:
>
> test1:abcd
> i want to read the data individual as a username and password as $var1 =test1 and $var2=abcd.
Please ask your Perl-only questions in the appropriate forum. This forum is about MySQL in combination with Perl. (See e.g.
http://learn.perl.org/)
my $data = 'test1:abcd';
my ($var1, $var2) = split /:/, $data;
--
felix
Please use
BBCode to format your messages in this forum.
Subject
Written By
Posted
Re: how work with split function in perl
May 20, 2005 03:04AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.