Aug 25, 2005 #1 mtorbin Technical User Nov 5, 2002 369 US Hey all, I wrote the following transliteration: $fullUnit =~ tr/ /%20/; However, the %20 always gets turned into $. Any ideas why? - MT
Hey all, I wrote the following transliteration: $fullUnit =~ tr/ /%20/; However, the %20 always gets turned into $. Any ideas why? - MT
Aug 25, 2005 #2 PaulTEG Technical User Sep 26, 2002 4,469 IE Is that twenty for space or two-OH, as in OHIO? Spend an hour a week on CPAN, helps cure all known programming ailments ;-) Upvote 0 Downvote
Is that twenty for space or two-OH, as in OHIO? Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
Aug 25, 2005 #3 duncdude Programmer Jul 28, 2003 1,979 GB Code: $fullUnit =~ s/ /%20/g; Kind Regards Duncan Upvote 0 Downvote
Aug 26, 2005 Thread starter #4 mtorbin Technical User Nov 5, 2002 369 US Duncan, Thanks. On that same note, I'm having the WORST problem with this portion of code: print "<body onLoad=delayDownload(\"$fileName\")>"; It's creating this (if you were to view the source): <body onLoad=delayDownload("Internal dscrp to FIX RM.xls)> As you can imagine, JS is screaming at me about the missing " but I can't seem to get it to recognize the one I've escaped. Any ideas? - MT Upvote 0 Downvote
Duncan, Thanks. On that same note, I'm having the WORST problem with this portion of code: print "<body onLoad=delayDownload(\"$fileName\")>"; It's creating this (if you were to view the source): <body onLoad=delayDownload("Internal dscrp to FIX RM.xls)> As you can imagine, JS is screaming at me about the missing " but I can't seem to get it to recognize the one I've escaped. Any ideas? - MT
Aug 26, 2005 #5 duncdude Programmer Jul 28, 2003 1,979 GB a shot in the dark... have you chomped $fileName ? and what happens if you print "--" . $fileName . "--"; Kind Regards Duncan Upvote 0 Downvote
a shot in the dark... have you chomped $fileName ? and what happens if you print "--" . $fileName . "--"; Kind Regards Duncan
Aug 26, 2005 #6 PaulTEG Technical User Sep 26, 2002 4,469 IE print "<body onLoad=delayDownload('$fileName')>"; Spend an hour a week on CPAN, helps cure all known programming ailments ;-) Upvote 0 Downvote
print "<body onLoad=delayDownload('$fileName')>"; Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
Aug 26, 2005 Thread starter #7 mtorbin Technical User Nov 5, 2002 369 US Now see, I tried all of that, but perl vomitted it back. Here is the solution I finally found that produces NO errors with JS or Perl: print qq(<body onLoad="delayDownload('$fileName')">); Thanks guys and gals! - MT Upvote 0 Downvote
Now see, I tried all of that, but perl vomitted it back. Here is the solution I finally found that produces NO errors with JS or Perl: print qq(<body onLoad="delayDownload('$fileName')">); Thanks guys and gals! - MT