This should be an easy project for a Perl programmer.
We have an existing Perl script that connects to [login to view URL]'s XML interface.
We need to add a few extra parameters to the script that checks for availability.
Currently we check for an available quantity of rooms.
We want to give users the option to say precisely how many rooms they want and who will be in them e.g. 2 adults, 1 child age 4 and another child age 1.
You can see the functionality we're looking for by going to [login to view URL] and selecting More options from the drop down.
This then brings up 3 drop down boxes to allow the site user to select number of rooms, number of adults, number of children. If there are children selected then their age(s) need to be entered.
You will need to create a very simple form (you can base it on the [login to view URL] form) that accepts the data - we'll use this on our site but will do all the styling, etc ourselves.
The form needs to work in a very similar fashion to the [login to view URL] form - you can examine their HTML source code as you would any regular web page.
The values then need to be interpreted by the Perl script and also allow for users not entering any details.
Our current script parses the number of single, double and triple (family) rooms in a variable called rooms and copes with multiple rooms - your new script needs to replace this section of the code and needs to cope with multiple rooms and zero or more children. You will need to declare your own (sensibly named) variables to deal with the changes.
Current code:
foreach my $r1 (@rooms)
{
my @r2=split(/x/,$r1);
my $room_occupancy;
my $rooms_required=$r2[0];
if ($r2[1]eq'S') {$room_occupancy=1;}
elsif ($r2[1]eq'D') {$room_occupancy=2;}
elsif ($r2[1]eq'F') {$room_occupancy=3;}
push(@{$self->{'rooms'}},[$room_occupancy,$rooms_required]);
$self->_log("Add room: $room_occupancy,$rooms_required");
$self->{total_rooms}+=$rooms_required;
$self->{total_guests}+=$room_occupancy*$rooms_required;
}
}
else
{
$self->{'rooms'}=[[1,2]];
$self->{total_rooms}=1;
$self->{total_guests}=1;
}
Once the array is created, the data is passed to the [login to view URL] XML interface in another Perl module.
This section currently takes the rooms_required array and then sends it to [login to view URL] in the correct format. It will need to be modified to send the new information.
We will supply a copy of the complete set of Perl modules in a private message but you need to be aware that most of them are irrelevant for this project, we'll supply them in case we've missed any dependencies you may need to check.
Other notes:
Our site is live - you *will not* be given access to our server. Please do not bid if this is an issue for you.
The connection to [login to view URL] is secure and we cannot get a test account set up. You *will not* be given our account and password - all testing will be done by us. Please do not bid if this is an issue for you.
As described above, you will need to create a very simple test form in HTML. This will need to include the relevant names for the form elements to match your code.
Hello,
Greetings from Shweta in Bangalore India.
I have the expertise in Perl and have handled many XML based APIs earlier.
I can surely have this done at higher priority.
Thanks,
Shweta
Dear potential employer.
Perl/Web expert here. Please, accept this bid to have your task done nicely, yet at moderate price.
Looking forward for update.
I will provide the amendments required on the script you have.
I will do all testing on my server in order to minimize exposure on the production server.
Best regards
Carlos
Hello,
I am an experienced Perl Developer (5 years).
Completed some good Perl Projects recently with good feedback from employer.
Looking forward to this project.
Thanks
Raj
Hi, trevor92.
I have a strong background in data processing and string manipulation using Perl, python, bash and scripting in General. I can start as early possible depending on your approval
and acceptance. In relation to this application, I can rest assured I will impart a high quality and reliable, efficient and accurate with the output. Give me a try and I will try to get the best results and finish the project far before the deadline. Thanks, Cracken
Pretty straightforward update. Sounds tricky to do so without a test area, but request appears to be in alignment with the existing code so should be doable following just the logic flow and XML specs.
Hi,
first of all I must tell you that had there not been so much of restrictions this could have been done for a lot cheaper price. Anyways respecting your business requirements, I am putting up this proposal. I hope your will appreciate the risk involved in it from my perspective.
I would also request you to have 30-60 minutes of discussion after the bid is accepted and modules are provided.
Regards,
Vishwa
I've been a perl programmer for more than 15 years, I am good at API, XML stuff and although I am not very good at HTML user interface styling I think you don't need that.