How good is oreilly site for learning PERL on Mac??

I am trying to learn perl from oreilly site.
http://www.perl.com/pub/a/2000/10/begperl1.html
Instructions said to save this text in a file.pl (I copied and pasted this into a plain text file and named it as p.pl)
#!/usr/local/bin/perl
print "Hi there!\n";
and go to the directory with the file and run from command line perl file.pl
And nothing happened.
Then tried these things and finally it worked..
#!/usr/bin/env perl
removed whitespace by hitting the delete key..
Not sure what I did but it worked..
Any suggestions how to avoid this problem in the future...
  Mac OS X (10.4.1)  

Generally, the O'Reilly sites are as good as it gets - they have some of the best technical documentation around, although not necessarily the best for beginners.
In any case, the link you reference does state:
In this series, I'm going to assume that you're using a Unix system and that your Perl interpreter is located at /usr/local/bin/perl.
Like any unix system you need to know a little bit about your environment in order to get the most out of it. In this case perl is not installed in /usr/local/bin and therefore you need to make some adjustments to your scripts.
Mac OS X installs perl in /usr/bin by default, so you should rewrite the first line as:
#! /usr/bin/perl

Similar Messages

  • I have an external hard drive that was formatted by a PC and has files and directories etc. I want to format it and use it on my IMAC for backup but I can't seem to write to it nor can I delete current content. How do I initialize it for use with the MAC?

    I have an external hard drive that was formatted by a PC and has files and directories copied to it etc. I want to use it on my IMAC for backup. I see it on my my IMAC . I can open files etc.  But I can't seem to write to it nor can I delete current content. I don't care if I lose current content. How do I initialize it for use with the MAC?

    You can't write to it because it's formatted as NTFS which OS X will read but not write to. If you want to continue using the drive with both a PC and OS X you will need to download and install NTFS-3G so you can then write to it from your Mac. You can get NTFS-3G at:
    http://www.macupdate.com/app/mac/24481/ntfs-3g
    If you want to use the drive exclusively with your Mac then move the data off it and reformat it in Disk Utility (Applications - Utilities - Disk Utilities) as Mac OS Extended (Journaled.)

  • Any good site for learning struts using weblogic

    Hi all,
    Please tell me any good website for learning struts using weblogic. I mean how to creat page and deploy , run it .....
    Thanks in advance

    Hi,
    here is the link for RMI tutorial.
    http://java.sun.com/docs/books/tutorial/rmi/index.html

  • Good online book/tutorials for learning java

    i tried googling around a bit but couldn't find much and the stuff i did find wasn't really aimed at noobs to programming, can anyone give me some good links to sites to get me started?

    In addition to the fine book Dusty linked to, the tutorial collection from Sun is also worth a look.
    I also recomend you start early with looking at the api as well. There you'll find good descriptions of all the classes and methods avaliable in the libs of Java. Its a bit intimidating at first because of its size, but after a while it will be the first place you'll look for information on how to use a class.
    tutorial :http://java.sun.com/docs/books/tutorial/
    api: http://java.sun.com/j2se/1.5.0/docs/api/index.html
    good luck!

  • How good is the N97 for you to replace your multip...

    Hi, a quick question for anyone who has an N97 and using it for more than communication.
    I have had a Nokia of all types (6310i, N71, 6680 etc) for almost 10 years and two weeks ago, I decided to upgrade to the N97 (cost: Euro269 with Vodafone Ireland,12 month contract).
    The main reason I got my N97 was to cut down on the tech clutter (Plugs, data cables and memory devices) I had for misc. media playback. I had an PSP (video playback, via 16GB MSProDuo), Ipod (music for walking & in-car audio via Belkin FM transmitter) and an N95 8GB (phone calls). Yes, I could have gotten the Iphone but the change over to O2 and the min. euro45/month fee on an 18 month contract was not worth the hassle involved. 
    What I wanted was, ideally, one device for all three needs: audio, video and communications.
    Two weeks after getting the N97, I'm happy that it has solved two of the three requirements: Video playback & communications) but audio playback is still clunky to use & difficult to edit.
    -The video: as I mentioned in another posting, porting over an .avi video file is still clumsy (I'm using Windows 7, maybe compatibility issues?). I've been using with 100% transfer/playback success -handbrake (single file) and AVS (Multiple files) to convert to .MPEG4 and file manager to drop the Mpeg4 file into "Video" folder. It's multiple steps instead of the seamless process promised by PC SUITE/OVI but, hey, it works for me!
    -Audio: a huge pain to create a simple playlist for walking. I know the 2.0 firmware promised in late Oct. looks great (from the video preview http://www.youtube.com/watch?v=c_iajkv2YE8) but trying to simply find a song is tedious in a what should have been an intuitive touch screen interface. Using the selection menu is like using Win 3.11 after using Win 7 -slow, clumsy & not designed for a smart phone. Also, the "find album art" in Nokia Music is slow & inaccurate. I do like the FM Transmitter feature and the little I have used so far in car, has been seamless to setup and a snap to use.
    -Communication: This is the first touch screen phone I have had and while it has taken time to make the mental shift from hitting physical keys, I'm happy with the handset's performance. Being blunt, I really hope the firmware upgrade addresses the N97's buggy OS. I have had to hard reset twice (change all, and I mean all "Save To" setting -messages, email, cache etc, to "Mass Memory" not "Phone memory" as this seems to have stopped cold the "memory full" warnings I was getting). Also, I'm finding the camera much better with the N97 Vs the N95 8GB and the free app. PhotoBrowser (http://betalabs.nokia.com/betas/view/nokia-photo-browser) is simply amazing to use as an indexing tool. If you want to impress family with the phones functions, take a photo of them and open up PhotoBrowser for the wow! impact. 
    Sorry if this is long winded but while I have read a lot of postings on the site for specific issues, just wondering how anyone in general is finding using the handset/computer for day to day media use? Personally while the battery life demands I have a charger with me always, I really like having a single device that does two of the three functions I was looking for in a single unit. 
    Paul 

    What EXACTLY does it say?

  • How good is my computer for rendering?

    I have a mid 2011 Imac with 6gb of ram, 3.06 GHz Intel Core 2 Duo Processor and a Nvidia GeForce 9400 graphics card. My friends and I are planning to start a gaming youtube channel and we expect to upload 720p video. So my question is, how good is my computer to render 15-30 minute longs videos?

    Yes but around how much time will it take?

  • Good site for intermediate knowledge on Mac system architecture?

    I have had up until now only a Windows-based background. My son recently got a Mac. There are plenty of guides for beginners which are aimed at the user-interface level for basic tasks. However I would like to read up on more of the Mac Operating system architecture itself eg I am fairly familiar with using Windows Control Panel, Device manager, the Windows registry itself - basically comfortable and knowledgeable about anything in windows system settings. Have had extensive training in virus removal so can interpret log files etc....I don't need or want to go to the extent of knowledge to program a Mac or anything of interest to Developers, but want to go a bit beyond understanding what the icons in the Dock represent.
    Is there a good website to start....yes, I know, playing around with the Mac is the best way to learn but I can't get near it for one thing, and I don't want to go experimenting till I know more about it. Would appreciate a pointer to any good reading material, especially if it has screen shots of various system folders or applications showing the menus available, etc.
    As an example, if I download a new device driver in Windows, I know where to look for it...we downloaded an updated printer driver the other day & it self-installed but I have no idea where it was installed....

    ozegirl wrote:
    Thanks guys, appreciate the suggestions, hope I'm not sounding picky/ungrateful for the help, but I'm not after stuff to do with developers/programmers. It's just wanting to find the Mac equivalents of things like msconfig, regedit (if there is such a thing in Mac), disk defrag, disk clean-up, tweaking settings - I guess this kind of stuff is mostly in System preferences? Things like the Administrative Tools in Windows where services can be stopped or disabled....pardon my ignorance if this is not relevant to Mac, I really know nothing about it. Maybe Confucious was right! Might need to get my own Mac The only time my son lets me near his computer is when something goes wrong & then he wants me to fix it. LOL!
    Mac OS is (un)fortunately very good at doing most of the above itself. i expect the terminal app can do some of it but i'm no good on the terminal side. i'd use 3rd party apps with a GUI such as Cocktail

  • How to setup DR site for ERP ECC 6.0 (ABAP)

    Dear
    For prepare to setup and config Oracle Data Guard in DR site
    I have a question for this issue as follows :
    If my system is Central System with Sap Application and Database Oracle in the same server . In the DR site, please guide me what steps which I need to do ?
    If my system is Distributed System with Sap Application and Database Oracle in the differ server. In the DR site, please guide me what steps which I need to do ?
    Thank for your guide

    Hi
    In step 1 : "Install SAP on DR site (including CI & DB)" -> With this step, I must install a new instance SAP with (CI + DB) in DR site as normally ? CI+DB must have a SID, hostname and instance number the same as Primary site ?
    Ans-->  yes install DB+CI on one instance and it must have same SID,hostname(not necessary),instance number
    step 3 : "enable force logging in primary site" -> I have not understand your comment, please guide clearly ?
    Ans--> u need to implement force logging in primary database
    sql> select force_logging from v$database;
    sql>alter database force logging;
    In step 4 : "From your primary site shutdown db and copy the datafiles to the DR site" -> With this step, before shutdown DB and copy datafile in Primary site to DR site, How do I do with the datafile was created in DR site at step 1 ( Must I delete them in DR site ?)
    Ans-->do not copy the datafiles of primary to standy database. just take a full offline backup of primary database, then restore it on standby database(only restore do not open it), then configure oracle DG
    In step 6 : "Create a backup controlfile" -> why create a backup controlfile while at step 1, we have a controlfile after a new instance SAP was created in DR site - I think If a new instance SAP was created in DR site, controlfile in DR site the same with Primary site (sorry if my thoughts are not true), please clearly
    Ans--> u need to create a standby controlfile and it will be created from your primary database.
    for your reference i am listing down the steps in serial order, first complete one then proceed to second and hopefully u will be able to configure Oracle GD
    Summary Actions
    u2022     Implement Force Logging mode (P)
    u2022     Synchronize O/S clocks
    u2022     Create password file (P & S)
    u2022     Create identical Primary & Standby sites (P &  S)
    u2022     Create / Modify Oracle SQLNet configuration files (P & S)
    u2022     Set initialization parameters using u2018spfileu2019 (P & S)
    u2022     Check that u2018archivelogu2019 mode is enabled (P).
    u2022     Backup the Primary dB for restore to Standby node (P) [if not exist].
    u2022     Create standby controlfile (P) and u2018scpu2019 to standby site.
    u2022     Start the listeners (P & S)
    u2022     Startup standby database (S).
    u2022     Put Standby database in u2018managed recovery mode (S).
    u2022     Check the database protection mode (P).
    u2022     Verify log shipping to Standby is working (P).
    u2022     Verify log apply to Standby (S).
    P------> Primary database
    S------> Standby database
    Regards
    Sumeet Kapur

  • Some1 know a good pl/sql sites for beginners.

    I need to find a good site 4 beginners.
    basic whit easy english.

    >
    The underlined section demonstrates my problem with
    some sites.
    I would have taken issue with more of the statement than you underlined...
    Cursors are of 2 types: implicit and explicit
    ....... implicit cursors are created by oracle engine
    itself while explicit cursors are created by the
    users
    Damn, does that mean I can't create implicit cursors, I can only write them explicitly.
    ...... cursors are generally used in such a
    case when a query returns more than one rows ....Erm.... no. All queries are cursors regardless of how many rows they return.
    normal pl/sql returning more than one rows givens
    error but using cursor this limitation can be avoided
    .... so cursors are used ....
    RAOTF,LMFAO.
    Writing the query correctly avoids that 'limitation'. If you only expect to get one row then write the query to ensure it returns one row, otherwise you are doing something wrong in your design.
    What the hell is "normal pl/sql"?Well, I've seen some pl/sql written by some people and it's definitely not 'normal'. ;)

  • What is a good book or CD for learning Flash on a Windows computer?

    Something I can buy from Amazon?

    Here are the results of a Google search for clipart for Mac:
    http://www.google.com/search?q=clipart&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en -US:official&client=firefox-a#hl=en&sugexp=ldymls&pq=clipart&xhr=t&q=clipartfor+mac&cp=10&pf=p&sclient=psy&client=firefox-a&hs=ZRQ&rls=org.mozilla:en-US%3Ao fficial&source=hp&aq=0&aqi=&aql=&oq=clipartfo&pbx=1&bav=on.2,or.&fp=71baaab10161ac2e
    You do not get a virus from googling - just make sure it is a reputable site you are purchasing from. Many are free to download.
    I don't use clipart myself - having a Mac and numerous editing, painting, and drawing apps, I create my own art. You can also usually purchase this type of thing in a computer store (big box store) - they sell software as well as hardware.

  • How good Endeca Search is for ECM (Search on documents) products

    HI all,
    I am evaluating Endeca Search (Guided Search) as a search engine for Enterprise content management's  .
    Basic objectives are -
    1) Search engine should be able to search documents with high relevancy.
    2) When user sees the search results , he /she should be able to navigate/open the original document.
    To be precise, users need is to find and open documents.
    So I expect different points of view for the above use case. If anybody implemented similar use case, then please make some noise .
    Regards,
    Hoque

    So I have been involved in half a dozen enterprise search projects using Endeca.  Things to consider:
    1. Ingesting the documents. (velocity, variety, volume and frequency of change, location of files ).  Endeca Content Acquisition Server comes with a variety of connectors for various industry standard document repositories, web and file systems crawls. Document converter for various document types is included.
    2. ACL and profiles for users. It is easy enough to create a link to the doc repository and pass credentials of the user. This has been fairly easy to achieve in the past.
    3. Search relevancy ( Endeca has a versatile relevancy ranking technology)
    4. Apply facets to documents so that they can be  refined. Various ways to achieve this.
    5 I18N  Are the documents one language, multi language.
    Check your price points for doing this , there are some systems out there that index everything and provide a basic text search, Endeca can combine structured and unstructured  records with faceted navigation but it needs effort and work to do this.
    hth
    Terry

  • How does iWeb track files for incremental updates to .mac

    In short, my question is where does iWeb keep track of which pages have been published to .mac so it can make perform an incremental update?
    My father is in Alaska using iWeb 1.1.1 to maintain a blog and photo gallery that, when published to .mac, has grown to just over 100MB. His connection speeds vary from port to port, but are typically around 128k and cut out after a bit of use. The challenge now is that iWeb is trying to upload the entire site which is failing every time due to the internet connection.
    While visiting him, I saved an identical domain.site file to my computer that I would like to publish using my high speed connection. Following this, my goal is to convince his version of iWeb that it has been updated without having to transfer the entire domain.site file and this is the part where I could use some help.
    So far I have published my copy of the site. I have then tried emailing him copies of the files: index.xml.gz, assets.site.plist, ServerCachedResources.plist, sharedassets.plist, and com.apple.iweb.plist which I accessed using the show package contents on the domain.site file. He has transfered these to domain file however it still wants to upload the entire site. Are there any other ideas on where iWeb tracks pages for incremental updates?
    ibook g4   Mac OS X (10.4.6)  

    If your MBP has a line in jack, just plug an 1/8th inch stereo miniplugto whatever your cassette deck has and use garageband to record the song.

  • How to restore package contents for preview.app after Mac OS X Lion upgrade

    since installing Mac OS X Lion I have been totally unable to run Preview.app. After having attempted to troubleshoot the problem I discovered that the package contents for the Preview application no longer existds on my hard drive. Does anyone know where I can obtain a another copy of the preview application? or how I might go about restoring the package contents for Preview in order to run Preview.app?

    Use Pacifist to extract it from the InstallESD.dmg residing inside the Install Mac OS X Lion.app.

  • Need a good flash video camera for use with my Mac...Suggestions?

    I have been looking at these things for weeks, and have heard remarks about different cameras not converting over to a mac very well. There is so much noise out there about different Cameras. At this point, I think I have it narrowed down that I want one with removeable/replaceable memory cards, and an HD Model. Looking to spend not much over a grand for a basic starter kit (bag, filters, lens covers, chargers, etc) and camera with a 2 year over factory warrantee, with ample memory. I am driving Cross-country with my brother who is getting out of the military and want to be able to make use of the footage I get. I want a good camera that I can easily make work with the Mac editing programs without having to purchase a bunch of extraneous programs, etc.
    Suggestions?

    I have the Panasonic HDC-SD5 and it works well.
    Be sure to pick a camera off this list:
    http://support.apple.com/kb/HT1014

  • How to buy mountain lion for more than 1 Mac

    Hi All,
    I want to upgrade the system for more than 10 users from snow leopard & lion, how to use one apple ID to apply a batch license for mountain lion upgrading?
    Is there anyway that I can get a solution?
    Jack,

    I'm unclear on what you're talking about, because you keep on talking about users and clients... how many actual machines need the software? Note that the number of users on a particular machine is unimportant. There is no limitation on that based on the licensing.
    To get volume licenses for Mac OS X for business use, see:
    http://www.apple.com/mac/volume-licensing/

Maybe you are looking for

  • FCPX Project Render Settings - Can you edit in h.264 and Transcode/render only used clips on timeline to Prores during render?

    I have a question on the PROJECT RENDER settings in FCP X. It's seems to me that one could theoretically import and edit entirely with original h.264 video files without needing to Transcode to ProRes422. Once you're done with your edit and want to g

  • Vendor Invoice input tax in sales

    Dear All, We are implementing SAP in legal industry and we came across a scenario where we need to bill the Hard Cost, that we are treating as a material in SD side and we are determining this material in SD through Resource related billing. We post

  • GI Label Print against movement type

    Hi Experts, While posting the Return Goods Issue (MVT- 202,222 & 262) document, the lable has to print in the Printer. But as per standard there is no movement type control for the lable print against the Inventory management. Can you please hlep on

  • Strange behavior of listener

    I am running to databases on my oracle 8.1.7. For one of the database say A the behavior of listener is normal,but for the other say B its behavior is very strange. i am using the same listener for both the database , can that be reason of problem ?

  • What is the oleoresources file?

    I have two files in my finder favorites that I have never seen before. One is called Oleoresources ans the other is called tg. anyone know what they are?