Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gmmastros on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Hikeeba

    literal 2 non-literal strings

    eval doesn't work, i don't want anything happening other than variable replacement either. but i did finally figure out how to do it. s/\${(.)}/${${1}}/g; this replaces all instances of literal ${blahblah} with the variables value ;-)
  2. Hikeeba

    literal 2 non-literal strings

    if i load lines from a file that have ${a} in them, how do i get perl to replace ${a} with the variable ${a}? i know i can do: s/\${a}/${a}/g but i want it to do ALL variables at once...any help?
  3. Hikeeba

    passing file handles

    How oh how does one pass a file handle to a sub? The reason I want to do this is because I have a sub to print out data to a file, and I want it to print out to where the handle is currently at. So I don't want to pass the filename...I want to pass the handle....how does one do it??? -John
  4. Hikeeba

    including other perl files

    That's cool, actually I like that method because I have to prefix my calls. myPackage::FuncA; Is there a way to have FuncA within the scope of the main perl file so you can just FuncA; I don't really need it, I like the other method, but Iw as just wondering ;) John
  5. Hikeeba

    including other perl files

    I'm rather new to perl. I wan to know how to include other perl scripts into my perl script. For example, I have a file called 'website.pl' that has all of my nifty perl subs that I use. Then I write a script in 'newsupdate.pl' and I want to use the subs from the 'website.pl' file. I'd rather...

Part and Inventory Search

Back
Top