Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

【Newbie】var eq range of ##?【PERL】

Name: Anonymous 2009-08-11 3:13

/prog/ I need help.

I have two variables $first and $last. Both of these are numbers, for example 5 and 10.

I need a script to print a line whenever variable $line (also a number) is equal to any number in the range $first to $last

What's the best way to go about it? Is there some neat Perl trick?

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-08-11 11:52

What is so hard? if(line<last && line>first){printf(linetext);}



_____________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
The philosopher is Nature's pilot. And there you have our difference: to be in hell is to drift: to be in heaven is to steer.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List