http://www.perlmonks.org?node_id=527009


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.