Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Build your array with push

by ambrus (Abbot)
on Feb 01, 2006 at 10:17 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://527009]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-19 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found