Thread: OS X en perl
-
24-02-2007, 12:33 #1Member
- Registered
- 15/11/03
- Location
- Pulle/Leuven
- Posts
- 843
- iTrader
- 0
- Mentioned
- 0 Post(s)
- Reputation
- 2/2
OS X en perl
Lo,
Ik moet voor school een practicum maken in perl. Na wat zoeken heb ik gevonden dat perl al standaard in OS X zit (zoals bij linux). Maar na wat proberen heb ik het nog niet klaargekregen om een perl progje draaiend te krijgen op men macbookje.
Ik probeer via textedit een .pl file te maken via veranderen van extensies. Ok lijkt allemaal geen probleem maar als ik via de terminal het prog laat lopen krijg ik een hele hoop fouten, niets met syntax of codefouten.
Dus vergeet ik hier iets, wat zie ik over het hoofd?
thx op voorhandYou have to aim for the sky and the stars to even reach the branches of the trees.no votes
-
-
24-02-2007, 13:10 #2Member
- Registered
- 17/07/02
- Location
- Sol System
- Posts
- 10,064
- iTrader
- 1 (100%)
- Mentioned
- 0 Post(s)
- Reputation
- 1/78
Als je nu zou beginnen met het vermelden van de exacte foutmeldingen, dat zou handig kunnen zijn om te bepalen waar het precies aan ligt. Ik vermoed - maar kan er uiteraard compleet naast zitten - dat je CPAN modules wil gebruiken die nog niet geïnstalleerd staan.
BTW Je bewaart die source toch in text formaat hé? Het kan nl. ook liggen aan 't feit dat je als RTF bewaart...PSN: dJeezBE - Delicious bookmarks
Disclaimer: I am currently suffering from severe CSD (Compulsive Sarcasm Disorder). - L'onion fait la farce - Facile largire de alienoPastafarian by choiceno votes
-
24-02-2007, 14:08 #3Member
- Registered
- 15/11/03
- Location
- Pulle/Leuven
- Posts
- 843
- iTrader
- 0
- Mentioned
- 0 Post(s)
- Reputation
- 2/2
ja ik bewaar in source formaat.
errors die komen zien er zo uit:
Code:Backslash found where operator expected at test2.pl line 1, near "rtf1\" Unquoted string "mac" may clash with future reserved word at test2.pl line 1. Backslash found where operator expected at test2.pl line 1, near "mac\" Backslash found where operator expected at test2.pl line 1, near "ansicpg10000\" Backslash found where operator expected at test2.pl line 1, near "cocoartf824\" Unquoted string "fonttbl" may clash with future reserved word at test2.pl line 2. Backslash found where operator expected at test2.pl line 2, near "fonttbl\" Backslash found where operator expected at test2.pl line 2, near "f0\" Unquoted string "fswiss" may clash with future reserved word at test2.pl line 2. Backslash found where operator expected at test2.pl line 2, near "fswiss\" Unquoted string "colortbl" may clash with future reserved word at test2.pl line 3. Backslash found where operator expected at test2.pl line 3, near "red255\" Backslash found where operator expected at test2.pl line 3, near "green255\" Backslash found where operator expected at test2.pl line 4, near "paperw11900\" Backslash found where operator expected at test2.pl line 4, near "paperh16840\" Backslash found where operator expected at test2.pl line 4, near "margl1440\" Backslash found where operator expected at test2.pl line 4, near "margr1440\" Backslash found where operator expected at test2.pl line 4, near "vieww9000\" Backslash found where operator expected at test2.pl line 4, near "viewh8400\" Backslash found where operator expected at test2.pl line 5, near "viewkind0 \" (Missing semicolon on previous line?) Unquoted string "pard" may clash with future reserved word at test2.pl line 5. Backslash found where operator expected at test2.pl line 5, near "pard\" Backslash found where operator expected at test2.pl line 5, near "tx566\" Backslash found where operator expected at test2.pl line 5, near "tx1133\" Backslash found where operator expected at test2.pl line 5, near "tx1700\" Backslash found where operator expected at test2.pl line 5, near "tx2267\" Backslash found where operator expected at test2.pl line 5, near "tx2834\" Backslash found where operator expected at test2.pl line 5, near "tx3401\" Backslash found where operator expected at test2.pl line 5, near "tx3968\" Backslash found where operator expected at test2.pl line 5, near "tx4535\" Backslash found where operator expected at test2.pl line 5, near "tx5102\" Backslash found where operator expected at test2.pl line 5, near "tx5669\" Backslash found where operator expected at test2.pl line 5, near "tx6236\" Backslash found where operator expected at test2.pl line 5, near "tx6803\" Unquoted string "ql" may clash with future reserved word at test2.pl line 5. Backslash found where operator expected at test2.pl line 5, near "ql\" Unquoted string "qnatural" may clash with future reserved word at test2.pl line 5. Backslash found where operator expected at test2.pl line 5, near "qnatural\" Unquoted string "pardirnatural" may clash with future reserved word at test2.pl line 7. Backslash found where operator expected at test2.pl line 7, near "pardirnatural \" (Missing semicolon on previous line?) Backslash found where operator expected at test2.pl line 7, near "f0\" Backslash found where operator expected at test2.pl line 7, near "fs24 \" (Do you need to predeclare fs24?) Backslash found where operator expected at test2.pl line 8, near "cf0 # een test om te proberen\ \" (Missing semicolon on previous line?) syntax error at test2.pl line 1, near "rtf1\" syntax error at test2.pl line 3, near "red255\" syntax error at test2.pl line 4, near "paperw11900\" Execution of test2.pl aborted due to compilation errors.Last edited by Reaper's Curse; 24-02-2007 at 19:51.
You have to aim for the sky and the stars to even reach the branches of the trees.no votes
-
24-02-2007, 19:48 #4Member
- Registered
- 17/07/02
- Location
- Sol System
- Posts
- 10,064
- iTrader
- 1 (100%)
- Mentioned
- 0 Post(s)
- Reputation
- 1/78
Nee, je bewaart wel degelijk in RTF formaat, zoals duidelijk op de eerste regel van je dump valt te lezen.
Eigenlijk kan je beter een andere editor gaan gebruiken (XCode, Eclipse, TextMate - die laatste is wel betalend), ofwel zorgen dat je als plain textfile bewaart (kan via het menu Format, Make Plain Text). Meer info : http://www.askdavetaylor.com/how_do_..._textedit.html
Je kan via de preferences trouwens instellen dat TextEdit per default plain text moet gebruiken ipv Rich Text.Last edited by dJeez; 24-02-2007 at 19:54.
PSN: dJeezBE - Delicious bookmarks
Disclaimer: I am currently suffering from severe CSD (Compulsive Sarcasm Disorder). - L'onion fait la farce - Facile largire de alienoPastafarian by choiceno votes
-
25-02-2007, 01:09 #5Member
- Registered
- 13/01/06
- Location
- Vilvoorde
- Posts
- 2,020
- iTrader
- 8 (100%)
- Mentioned
- 0 Post(s)
- Reputation
- 0/0
als je textedit opstart, gewoon apple+shift+t doen of via het menu Format=>Make plain text. dan is er geen formatting zoals djeez zei. Ik gebruik persoonlijk Textmate, maar BBedit is ook héél goed als je wilt programmeren

Cheers!And that's why you always leave a note!
LoL Summoner's name: Riftonno votes
-
25-02-2007, 11:13 #6Member
- Registered
- 15/11/03
- Location
- Pulle/Leuven
- Posts
- 843
- iTrader
- 0
- Mentioned
- 0 Post(s)
- Reputation
- 2/2
ok thx beide, heb nu Xcode en dat werkt direct.
Ik zal de andere progs die jullie aanraden ook eens proberen.You have to aim for the sky and the stars to even reach the branches of the trees.no votes
