in reply to Re^2: Semicolons in webforms
in thread Semicolons in webforms
So, if "$stringvariabe" contains a value like "item1;bottle", and you want to "parse" that, do you mean that you want to split on semicolon to get a "name, value" pair -- like this?# strxmltext is a string variable sent by the webserver and will conta +in a semicolon my $stringvariabe = $args{strxmltext};
If you sometimes get three or more strings separated by semicolons, you probably want to assign the result of split to an array:my ( $name, $value ) = split /;/, $stringvariabe;
Is there something more complicated about the task that you haven't mentioned yet?my @strings = split /;/, $stringvariabe;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Semicolons in webforms
by dmaranan (Acolyte) on Dec 30, 2007 at 22:14 UTC | |
by eserte (Deacon) on Dec 31, 2007 at 00:14 UTC |