MySQL Forums
Forum List  »  Perl

Re: how work with split function in perl
Posted by: Felix Geerinckx
Date: May 20, 2005 03:04AM

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.

my $data = 'test1:abcd';
my ($var1, $var2) = split /:/, $data;

Please use BBCode to format your messages in this forum.

Options: ReplyQuote

Written By
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.