Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
little help
#11
Quote:whitetiger: Smile
oracle: [Image: KkatSad.txt]
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#12
Quote:....
Ser$ = "what ever"
rep$ = something maps

maps is a var how would i include the var in the replacement
Let me see if I understand you.
Perhaps you got *maps* from the user, like this:
INPUT "Please enter the maps data ", MAPS$

Then you want to append it to "something "
So, you now would do:
REP$ = "something " + MAPS$

Does this now get you started?
*****
Reply
#13
hahahah! you silly basic users! in perl it is so easy!!!

while (<$yourfile>) { #can be scalar or file
if (s/needfind/replacewords/) {
print "needfind was replaced with replacewords\n";
}
}

mooha!
Reply
#14
Quote:hahahah! you silly basic users!

I wouldn't say this on the QBasicnews forum, you know
B 4 EVER
Reply
#15
#!/usr/bin/perl
Reply
#16
/home/xxx/dos/dosemu/freedos/qb45/qb.exe
Reply
#17
That's dillema, not delmia!
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#18
Quote:hahahah! you silly basic users! in perl it is so easy!!!

while (<$yourfile>) { #can be scalar or file
if (s/needfind/replacewords/) {
print "needfind was replaced with replacewords\n";
}
}

mooha!
Looks like pretty messy, non-obvious code to me, whatever it is.
*****
Reply
#19
it's a reagular expretion that matches needfind and replaces it with replacewords while $yourfile is true.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)