Perl, my old scripts run but a I can't run new scripts

I'm getting back into Perl and I have old practices files which will run fine. But when I write a new script nothing happens. Currently using 10.4.5, BBEdit 6.1 Lite. All my scripts have the following first line: #!/usr/bin/perl
Old scripts work, if I type a new one and run it nothing happens except I get a new command line prompt.
On the other hand if I remove the #!/usr/bin/perl line and go to the command line and type: perl programname. Programname will run!?!!?
I still have to dig into the man pages on perlrun. Does anyone have a clue?
Thanks, Dennis

thanks for all the information. I really appreciate the replies.
all of my experience is based on the O'Reilly book I mentioned above. I've tried to respond to all the comments but the order is not exact.
chmod 755 uses an octal argument to change the permissions on the file.
In particular the file becomes executable.
1. which perl returned /usr/bin/perl which explains why the old perl programs run. Perl is where it's supposed to be.
2. I haven't done anything to my system as far as a rehash goes(what is that anyway?)
3. the wc -l command returned 0 hw2, meaning zero lines, bingo!! this must be it, don't you think?
4. So why will BBEdit let me write, save, reopen files with content and UNIX sees the file as empty.
5. when these programs are run, nothing happens I just get a new prompt.
BTW the program, called hw2, in question reads:
#!/usr/bin/perl
print "hello, world. \n";
get this: when I do cat hw2 I get a listing without the #!/usr/bin/perl at the top ie I see one line instead of two even though wc -l reports zero lines, what's up with that???
I think that's everything for now. I'm going to look for another texteditor
ps does it matter what the line end character is? I can choose Mac or UNIX.

Similar Messages

  • I have a mac osx version 10.6.8 no windows and i am trying to install a program but keep getting can not run in dos mode  ( the disk says on back works on intel mac with parallels or vm fusion) is this program not compatible with my mac?

    i have a mac osx version 10.6.8 no windows installed and i am trying to install a program but keep getting can not run in dos mode  ( the disk says on back works on intel mac with parallels or vm fusion) is this program not compatible with my mac?

    You run Windows in Parallels or Fusion. Then in Windows you install the program.

  • I created my Apple ID in Ireland, but would now like to switch to a German Apple ID, keeping the same email address. How do I delete my old Irish Apple ID, so I can create a new German one with the same email?

    I created my Apple ID in Ireland, but would now like to switch to a German Apple ID, keeping the same email address. How do I delete my old Irish Apple ID, so I can create a new German one with the same email?

    Welcome to the Apple Community.
    Click on your account name in the top right corner of the iTunes store in the iTunes application on your computer, enter your password and click the "view account" button. Navigate to the Apple ID summary where you have the option to "change country or region".
    In order to change your location, you will need a credit card registered to an address in the location you are trying to change to.
    You cannot change your location if you have credit on your account, if you are unable to spend your credit and leave a balance of zero, contact Apple, which you can do through iTunes Store Support.

  • Firefox is already running, but not responding to open a new window

    I closed the only opened Firefox process that was running. Then clicked the Fox to start Firefox again. I received a message: Firefox is already running, but not responding, to open a new window. You must close the existing Firefox process, or restart your system. This is a stupid message since there is no Firefox in process.
    == This happened ==
    Not sure how often

    Hello Lara.
    Hopefully this support article is what you need:
    http://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • After updating to Firefox 11.0 Mac, Firefox runs, but no window can be seen

    I'm running OSX 10.5.2 I just upgraded to Firefox 11.0. Firefox runs, but no windows can be seen.

    See also:
    *http://kb.mozillazine.org/Corrupt_localstore.rdf
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    *Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4 and later Safe mode disables extensions and disables hardware acceleration.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Can any one tell me how to install flash player on powerbookg4.i actully uninstall it to upgrade it but now i can not install new one.it always says get flash player for powerpc when i try to install it after downloading.it is 10.5.8 version

    can any one tell me how to install flash player on powerbookg4.i actully uninstall it to upgrade it but now i can not install new one.it always says get flash player for powerpc when i try to install it after downloading.it is 10.5.8 version

    Flash Player version 10.1.102.64 is the last version available to PPC Mac users. However, this Flash version won't work for many videos on Facebook, YouTube and other sites. Adobe's latest version, 10.2.x or later, is only for Intel Macs. Adobe will not provide a newer Flash version for PPC Macs.
    The message requesting that you download Adobe Flash Player takes you to Flash Player requiring an Intel processor. Doesn't work on a PowerPC processor. I found a hack, installed it & it works with Firefox, TenFourFox & Safari.
    Download this http://www.steelbin.com/FPforFBPPC.zip to your desktop, unzip it, and replace the current Flash Player plug-in which is in your main/Library/Internet Plug-Ins folder, (not the user Library). Save the old one just in case this one doesn't work.
    Hack Allows PowerPC Macs to Access Flash 11 Content
    http://lowendmac.com/ed/royal/12sr/flash-11-and-powerpc.html
     Cheers, Tom

  • I have a 2006 iMac running Lion 10.75. can I run Airplay Mirroring on this machine

    I have a 2006 iMac running Lion 10.75. can I run Airplay Mirroring on this machine

    The problem I'm facing is that I cannot make any changes to anything because my home folder is no longer found.  I can't even reset it to boot from something other than the installed OS (OS X 10.6.80.  Is there any solution to this problem?  I have made a USB drive bootable but cannot get the machine to boot off of that either.  I am at my wits end.  Please help!

  • When I'm running Firefox 4, I can't run Adobe Photoshop (message reads "attempt to access invalid address" - what can I do?

    When I'm running Firefox 4, I can't run Adobe Photoshop Elements 5.0 at the same time. I get an error message which reads "attempt to access invalid address". When I stop running Firefox, I can use Photoshop again. What can I do?

    Which OS are you using? Because there have been some issue with Win7 and PSE4. Try upgrading to PSE8.You can try the trial version of PSE8.

  • How old is my Mac mini and can i run mountain Loin

    I have a mac mini Intel core 2 duo, 1.83 GHz, 2 GB SDRam running Mac OSX 10.6.8. Several of my software apps states its 64 Bit Intel. Can I run Mountian Lion? I have no idea how old my mini is or how to find out.  I really just want to use the icloud.  ANY help would be GREATLY appreciated.

    It would appear you have a Mid-2007 model. You can run Lion but not Mountain Lion. iCloud works with Lion 10.7.2 or later.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.

  • Firefox is already running but is not responding - Cannot run Firefox on multiple machines with in a network (parent.lock)

    Environment - Single File Server & 6 workstations.
    I have a single generic user account/profile and log on to all 6 workstations at the same time (1 user, 1 password, 6 workstations).
    I need to run firefox on all the workstations with the same user and user profile.
    However, as soon as one user opens firefox all the others get the message "Firefox is already running but is not responding" and can not open the browser. No other workstations can open Firefox. I can only run 1 instance of Firefox in this scenario. How can I run it on all 6 with a single user account?
    I have been back to the server and deleted the parent.lock file but it is recreated again as soon as someone open a firefox browser and the problem starts al over again.
    Please - How can I get a single user with a single profile to run firefox on 6 workstations simultaneously?
    Thank You

    hello timfarr, you cannot do that - many essential databases (like bookamrks, passwords etc.) in your profile are not designed to be accessed by different processes at the same time...

  • OID is up & running but "ldap"  process are not running

    Hi all,
    Oracle Internet Directory is up & running but LDAP processes ( Not Running ---- Process oidmon
    Not Running ---- Process oidldapd
    Not Running ---- Process oidrepld
    Not Running ---- Process odisrv) are not running.
    I am trying to configure SSO for reverse proxy server and ran the command ssocfg.sh https proxyServerName proxyServerPort
    and when i am trying to go for next step that is ldapmodify -D cn=orcladmin -w welcome1 -v -f setdasurl.ldif
    it is showing up cannot connect to LDAP server. and also when i am trying to acess SSO admin Server the redirection url is showing up with 404 page not found error.
    pls help me
    Thanks

    Do 'oidctl status' and check if the 'oidldapd' is up and running. If not, start 'oidmon' by executing the command 'oidmon start'.
    To start 'oidldapd', use 'oidctl' command.
    Eg: oidctl connect=<sid_name> server=oidldapd instance=<instance_num> start
    Sometimes, when you start 'oidmon', the 'oidldapd' process is also started. So, its a good idea to do 'oidctl status' after 'oidmon start'

  • Laptop running too slow how can i run a clean up application or system check.

    My Laptop is running too slow and is constantly buffeting, how can i run some clean up software or a system check.

    If your Mac runs slowly:
    http://support.apple.com/kb/PH19031?viewlocale=en_US&locale=en_US
      Start up in Safe Mode. http://support.apple.com/kb/PH18760
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".
    Repair Disk
    Steps 1 through 7
    http://support.apple.com/kb/PH5836
    Run EtreCheck for a system report.
    https://discussions.apple.com/docs/DOC-6173
    FileVault encryption may make the Mac run slowly  after installing new version of OS X.

  • Hello, my brother gave me his old iphone (3G) but apparently i can't DL any apps because IOS is too old. is this a bad joke an iphone without app ? can i upgrade ios? itunes don't want to do it. is apple just want to sell new phone and say " we pwnd u" ?

    Well everything is in the tittle. i have an iphone without Apps, its really sound like a bad joke u say when ur drunk after an hard party no ?

    Turias wrote:
    not a joke? i can do more with my old computer running on windows 95 ahah
    i didn't liked apple at first because they were making pretty crazy price. but now i just understand u all gave ur money for something who will be totally outdated in a year just to make you buy the new one ' cuz it totaly fashion bro"
    As stated in your first post - this phone was given to you by your brother.  So no you actually haven't spent any money on the iphone or Apple.
    You can't quit trolling now.

  • Firefox is not opening and saying " firefox is alredy running but not responding ,to open a new window you must close the existing fireox process" even though there is no other window open

    this has been happening since i updated i have windows 7 but firefox beta used to work just 3 days ago i had mcafee site advisor but i deleted it its not working every time i click on the icon it displays the above message

    I discovered that when the "Firefox is already running . . . ." message pops up I can fix it by doing the following [note: I get the same message for the Thunderbird e-mail program too] : 1. I open 'TASK MANAGER" and click on the "Processes" tab. 2. Next I scroll down until I see Firefox.exe *32 in the leftmost column (or Thunderbird. exe *32 if the message came up there), highlight that line by clicking on it and then click on the "end process" button on the right side on the bottom. 4. A pop-up window will come up but ignore its message and click on the "end process" button in the pop-up window. The program should then start the next time you click on the icon..
    While that saves the need to restart your PC to fix the problem, I have yet to find any information as to the reasons for those two processes to show up in the first place. I'm running the 64 bit Win 7 Professional and do not know if that has something to do with those two processes running from time to time or not. The message comes up often but not all the time and I haven't been able to pinpoint any action on my part where the message comes up if I do '''X '''or the message never comes up when I do '''Y''' before closing Firefox or Thunderbird.

  • I have Adobe Photoshop Elements 10. But the program can not run in Windows 8.1. Why not?

    I reinstalled Photoshop elements 10 on my new computer. the computer run Windows 8.1
    My computer has two harddisks. One of them is from the old computer, and the other is a new one.

    Is the Editor correctly installed?
    Go to C:Program Files (x86) >> Adobe
    Find the PSE folder and then right-click on the Editor application and choose "Run As Administrator"

Maybe you are looking for

  • Object width and height

    I realize this isn't exactly the way that Flex works, but I need some help here: I have a UIComponent class that has graphics drawn inside of it (using graphics api and sprites). I need to be able to detect the width and height of this component. Sin

  • FBVB not defined for direct call-up error

    Hi All, user are getting the message 'Transaction FBVB not defined for direct call-up' while running transaction FBVB .What does this mean.Even i am also getting the same error while running FBVB . Can somebody tell what does this error mean . Thanks

  • Wanted: photo sorting software

    I need some guidance as to suitable photo-sorting software. I'm pretty sure iPhoto isn't what I want, but I thought this forum the best place to ask. I am generating audio-visuals in Adobe Premiere, mostly consisting of scanned slides. The images are

  • New replacement iPhone 5 just received.

    Hi, this morning i received my replacement iPhone 5. I am unsure but i believe the original handset i owned could of been on the O2-UK network. Is this replacement from Apple now going to be factory unlocked or not? Appreciate your time, thanks.

  • Number Range Mismatching

    Hi everyone, I have started entries in Prdn Server, accordingly i hv defined no. range for MIGO. First day i entered 22 entries and working fine, but second day when i started entries it is showing 30 as document number. So number 23 to 29 are missin