
rcrx3
Novice
Jan 6, 2009, 2:53 PM
Post #14 of 17
(5579 views)
|
Re: [rcrx3] Probably an easy one... redirect.pl server error, can't use script!
[In reply to]
|
Can't Post
|
|
ah... I thought I was done, but now I'm getting this error? After this script was working, I used the same syntax to write out the whole list -- here is what I entered:
#!/usr/bin/perl use strict; use warnings; use CGI; use CGI::Carp qw/fatalsToBrowser/; my $cgi = CGI->new; my $id = $cgi->param('id'); my $baseurl = 'http://fitnessopus.com'; my $script = 'xcart/manufacturers.php'; my %manufacturer = ( 84 => 'Accu-Fitness', 114 => 'ALRI', 102 => 'Amino Vital', 117 => 'Anabolic Resources', 84 => 'Accu-Fitness', 114 => 'ALRI', 102 => 'Amino Vital', 117 => 'Anabolic Resources', 116 => 'Anabolic Xtreme', 108 => 'ANSI', 99 => 'APEX', 39 => 'AST Sports Science', 106 => 'AXIS Labs', 72 => 'Balance Bars', 50 => 'Bill Grant Nutrition', 92 => 'Bio Pharm', 41 => 'Bodybuilding Chemicals', 58 => 'Body FX', 135 => 'Bodywell Nutrition', 146 => 'BOSS Workout Supplies', 2 => 'BSN', 133 => 'Cardio Fire', 36 => 'Champion Nutrition', 70 => 'Chef Jays', 64 => 'Clif Bar', 112 => 'CNS', 121 => 'Controlled Labs', 6 => 'Cyence', 24 => 'Cytodyne Technologies', 139 => 'Cytogenics', 66 => 'Cytosport', 95 => 'Delmar Labs', 54 => 'Detour Bars', 137 => 'Drinks that Work Inc', 1 => 'EAS', 56 => 'Eclipse Sport Supplements', 40 => 'Elite Delivery Technologies', 65 => 'Ergopharm', 103 => 'EST', 37 => 'Fitness Enterprises', 11 => 'Fizogen', 122 => 'Flexsports International', 118 => 'Gamma Enterprises', 27 => 'Gaspari Nutrition', 76 => 'Gatorade', 111 => 'German American Tech', 97 => 'Golds Water', 144 => 'Hampshire Labs', 87 => 'Health From The Sun', 59 => 'Healthy N Fit', 45 => 'Hi-Tech Pharmaceuticals', 46 => 'Himalaya USA', 69 => 'Human Development', 141 => 'Iceman Rx', 115 => 'IFORCE', 132 => 'Inner Armour', 68 => 'Innovative Delivery Sys', 105 => 'INSTONE', 77 => 'Iovate', 49 => 'ISS', 86 => 'Jan Tana', 104 => 'Kilo Sports', 83 => 'Labrada Nutrition', 107 => 'LBI Nutrition', 94 => 'LG Science', 25 => 'Man Sports Nutrition', 26 => 'Maximum Human', 98 => 'Maxoderm', 82 => 'Medical Research Institute', 130 => 'MEDPORT', 73 => 'Met-Rx', 28 => 'Molecular Nutrition', 124 => 'Monster', 156 => 'MRI', 20 => 'Muscle Asylum Project', 93 => 'Muscle Foods', 142 => 'Muscle Fuel', 4 => 'Muscle Tech', 48 => 'National Health', 62 => 'Natural Source Products', 33 => 'Nature's Best', 123 => 'Nature's Select', 43 => 'Nature's Way', 53 => 'Next Proteins', 63 => 'Nutrabolics', 13 => 'Nutrex', 67 => 'NVE Pharmaceuticals', 120 => 'Palo Alto Labs', 136 => 'Panthera Pharmaceuticals', 127 => 'Poland Springs', 109 => 'Power Crunch', 81 => 'Power Fitness', 96 => 'Powerbutter', 74 => 'Powerfood', 101 => 'Premeir Nutrition', 125 => 'Primaforce', 85 => 'Pro Lab Nutrition', 55 => 'Pro Tan', 51 => 'Promax Nutrition', 110 => 'Protos', 113 => 'PVL', 140 => 'RecoveryX', 145 => 'Reeves Nutrition', 57 => 'RTO Sportsgear', 30 => 'San Nutrition', 47 => 'Schiff', 128 => 'Science Foods', 126 => 'Scivations', 78 => 'Six Star', 89 => 'SNAC Systems', 52 => 'Sports One', 100 => 'Strength Systems USA', 32 => 'Super Spectrum', 80 => 'Syntrax Innovations', 29 => 'THE BEAST Sports Nutrition', 138 => 'The Shaker Cup Company', 42 => 'Thermolife', 155 => 'The Shaker Cup Company', 61 => 'Tiger's Milk', 119 => 'Turbo Shaker', 35 => 'Twin Lab', 90 => 'Udo's Oils', 88 => 'Ultra Lab', 71 => 'Universal Nutrition System', 143 => 'USP Labs', 34 => 'VHT', 17 => 'Vital Pharmaceuticals', 44 => 'Vitol', 19 => 'Vyotech', 38 => 'Weider Health And Fitness', 23 => 'Worldwide Sports Nutrition', 60 => 'Zoller Labs', 129 => 'Zone Perfect', 131 => 'Zydot', ); exists $manufacturer{$id} ? print $cgi->redirect("$baseurl/$script?manufacturerid=$id") : print $cgi->redirect("$baseurl/error.html"); Software error: Substitution replacement not terminated at /services/webpages/f/i/fitnessopus.com/cgi-bin/redirect.pl line 127.
|