CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
text directly after a $whatever

 



mwaf
Deleted

Feb 10, 2000, 10:11 PM

Post #1 of 3 (717 views)
text directly after a $whatever Can't Post

I need to print to a file "asdf$whateverasdf" where $whatever = "hmmm"; and it turns out "asdf" because it doesn't understand that it's $whatever not $whateverasdf. I don't blame this for not working but i would like to know what to put inbetween to get the asdf text directly after $whatever so that the file would turn out "asdfhmmmasdf".

A space won't solve the problem, or it will, but it will result "asdfhmmm asdf" and I don't want that it messes up things. I've tried puting a '\' but that didn't obviously work so does anyone know what to put there as there most be something :-)
Thanks!


Cure
User

Feb 11, 2000, 12:11 PM

Post #2 of 3 (717 views)
Re: text directly after a $whatever [In reply to] Can't Post

Hi mwaf

I did some research on comp.lang.perl.misc and japhy gave me the solution(s) to make it print asdfhmmmasdf

print "asdf", $whatever, "asdf";
print "asdf" . $whatever . "asdf";
print "asdf${whatever}asdf";


[This message has been edited by Cure (edited 02-11-2000).]


mwaf
Deleted

Feb 12, 2000, 3:39 AM

Post #3 of 3 (717 views)
Re: text directly after a $whatever [In reply to] Can't Post

Thanks, you really seem to be the 'Cure' :-)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives