G+_jerry coffey Posted June 17, 2014 Share Posted June 17, 2014 Hi Here is my resistor color code script from python reworked for perl. It was interesting to find that you reference an array with @ to declare it and $ to use elements. It was also interest to find that when printing, if you want to do math you must put it outside the quotes or just do the math outside the print statement and then use a variable inside the quotes, as I did here. It did not take much changing and only some internet research to get the input method. https://github.com/jcoffey42/coding101/blob/master/perl001.pl Link to comment Share on other sites More sharing options...
Recommended Posts