Thursday, May 29, 2008

Help! I m usually the technologically savvy one- but when a friend of mine asked me what web hosting company would be best for their business- I had no idea. I have tried searching online- but I have no idea what most of the technological terms mean (such as PERL- VPS- SSL) The following is their requirement (they have a small business that sells less than ten products / services):
*They need access of certain parts of the Electronic shop (e-shop) to be restricted to certain members
*Unlimited Disc Space
*Unlimited Data Transfer
*At least 250 email addresses with unlimited storage and at least 10MB of attachments; catch all; free aliases; mailing list
*Free Site Building/ Design Tools
*Hosting of the Web Site & ability to accept payment through pay pal- Visa- Mastercard- and Discover plus Free Shopping Cart
*The ability for customers to create usernames and passwords to log in
*Interactive chatting between customers and support
*Site Statistics
*Online Gift Certificates and Coupons

Is there a way to convert a Perl script to a VB script? I ve searched the net and can t find a thing... OR anyone that would be willing to convert this for me??? Any help is appreciated!!! :-) THANKS!!!


*This script works perfectly in Perl I just need it in VB*
~~~PERL SCRIPT BELOW THIS~~~

use IO::Socket;
$ibootip = "192.168.1.254"; # Default IP address of iBoot power strip.
$ibootip = $ARGV[0] if(defined($ARGV[0])); # Override default?
$ibootport = 80; # Port to address for TCP connection.
$pw = "PASS"; # Password to control iBoot.
$CYCLE = "c"; # Command to cycle power.
$s = IO::Socket::INET->new("$ibootip:$ibootport");
die "Failed to connect - $!\n" unless $s;
print($s "\e$pw\e$CYCLE\r"); # Nuke it!
close $s; # Tear down the socket connection.

i have a blackberry perl but the n96 and the n76 look great oh the n96 for the space .i what to get the blackberry 9000 causes its so look at me

Record Line:

1-2-3-"four-for"-5-"six-ssiixx"-"seven"

I want to remove the comma in "four-for" and "six-ssiixx". I tried using the $myValue =~ s/<regular_exp>/<replace_value>/g but I just end up replacing the string starting from the bad field to the last instance of a comma on the record.
Yahoo cut off my record string. Here it is again:

1-2-3-"four-for"-5-"six-ssiixx"-"seven"
Once again- here is the full string with comma plus spacing afterwards:

1- 2- 3- "four- for"- 5- "six- ssiixx"- "seven"
I m satisfied with raymanrevo s answer but how do I choose "Best Answer"?

Here is a modified version of raymanrevo s suggestion incorporating possible spacing:

$myValue =~ s/("[\w\ ]*)-([\w\ ]*")/\1\2/g;

Thank you raymanrevo! :)

I have a text file which contains some data.It has the data in column wise form..Say the columns are age-name-and number.And below are the values.How can I parse the file in perl so that it will output only the the desired values.e.g it will only output the value for the age field?Can somebody give a small example?Thanks in advance..
The file is somewhat like this

Name Age Number
---------------------------------------
xyz 22 123456
abc 21 234567

No comments: