• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

HELP! How would I script this in perl

narzy

Elite Member
this is psudo code from my knowlage of Qbasic I need to output this to a text file, (tab) is a tab

for count = 2 to 254
print count (tab) "PTR" (tab) "65.122.144."count".qdsl.fasternetworks.com"
count = count +1
next count
 
*sigh* I had it written out and a mod moved it. Click "Back" and it was gone.

for (my $count = 2; $count <= 254; $count++)
{
print "$count\tPTR\t65.122.144.$count.qdsl.fasternetworks.com\n";
}

The \t are tabs. I'm not quite sure what you meant when you put things in quotes, I assume those are string literals.
 
for(my $i = 2; $i < 255;$i++){
print qq~$i\tPTR\t65.122.144.$i.qdsl.fasternetworks.com\n~;
}

Should work. I left out the quotes, I don't know if thwyt were actually supposed to print or not. Feel free to add them back in.
 
big kisses to all of you! seriously you saved me hours of work. now umm how can I get it to save to a text file?
 
Back
Top