Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Build your array with push

by ambrus (Abbot)
on Feb 01, 2006 at 10:17 UTC ( #527009=note: print w/replies, xml ) Need Help??


in reply to Re^2: Build your array with push
in thread Build your array with push

That won't work. Perl is not C.

Replies are listed 'Best First'.
Re^4: Build your array with push
by bmann (Priest) on Feb 01, 2006 at 20:35 UTC
    Sure it will, but you need the -P command-line switch (which is not recommended), cpp and sed.
    $ perl -P -MO=Deparse cpp.pl <stdin>:1:2: warning: backslash-newline at end of file push @Hibbs_Daglish_Schwartz_Vroom, 'H'; cpp.pl syntax OK
Re^4: Build your array with push
by Anonymous Monk on Feb 01, 2006 at 20:15 UTC
    That won't work. Perl is not C.
    Perl is pretty close though. What part of Perl's syntax makes CPP choke (just curious)?
      Oh, you said "pass it through cpp". Sorry, I didn't notice that. Then it would work.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://527009]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2016-08-31 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (427 votes). Check out past polls.