This afternoon, mid-way through installing the latest windows updates, my computer threw a BSOD at me. Thinking it was a one off thing I restarted a few times. It BSODs consistantly. I then decided enough was enough and tried to boot from my Windows CD to do a roll-back. Sure enough, it...
I've written a program for calculating the molecular mass of any inputted molecule. I've constructed it using 118 if statements as you can see:
#!/usr/bin/perl -w
#perl2exe_include Math::BigInt
#perl2exe_include Math::BigInt::Calc
#molwt.pl : Calculates molecular weights
#Written by Luke...
Code so far:
#!/usr/bin/perl -w beeps.
#loader.pl
#Luke Aaron
#Start: 29/01/08
#Build: A 29/01/08
#Script to act as a script loader to be located in C:\Documents and Settings\USER in order to easily launch scripts from the command line
#located in C:\Documents and Settings\USER\My...
I just put together a new computer with a core2duo, 2gig ram, 500gig hdd, dvd burner etc. and I just put in the last component - a 7600GT, plugged in the monitor and turned it on to set-up the BIOS and then install SuSE and WinXP. On the monitor it reads: "NO VIDEO INPUT". I have no idea what...
I've recently purchased the components for a new PC and went to start putting it all together today. I noticed that in the instructions for installing the processor there is no mention of thermal compound and on teh heatsink that comes with the processor, there appears to be thermal 'strips'...
What I want to do is write a program that will take two inputs from the user: a folder (eg. C:\Documents and Settings\Owner\My Documents\My Music\MP3) and a string (eg. "Don't steal music!") and change the summaries of every MP3 in that folder (including in sub-directories) and change the...
What I need to do is take a string, for example $string and whenever there is a capital, form an entry in a list.
To illustrate what I meen:
If i have this string: Os6NaClPo9C
I want to break it into a list with the following elements:
Os6
Na
Cl
Po9
C
any ideas?
How do I check that a particular string, being a number, is an integer?
For example, in a program I am wriing i need to do the following two things that involve this:
unless($input is an integer) { blah }
and
if($value /2 is an integer) { blah }
Can anyone help me?
Thankyou,
Luke
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.