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.


Comment on Re^3: Build your array with push
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.
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

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 about the Monastery: (8)
As of 2014-10-23 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (129 votes), past polls