Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Ice cream and cake!

by bv (Friar)
on Sep 17, 2009 at 16:58 UTC ( #795934=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Ice cream and cake!
in thread Ice cream and cake!

I'm replying to this because I ran into this same problem in a different script, but please understand that this code isn't supposed to do anything but compile.

The error is because I'm using s/// on a qw() list, not a real array. A fix (that is really a hack, IMHO) would be to change it to:

map { s/_/ /g; say $_," ice cream n cake " } @{[qw( Now_who_dat_is_with_the Party_aint_live_without_the Whatcha +_want_some All_the_kids_like )]};

This makes the list into an array ref ([]), then dereferences to the actual array@{}.

print pack("A25",pack("V*",map{1919242272+$_}(34481450,-49737472,6228,0,-285028276,6979,-1380265972)))


Comment on Re^4: Ice cream and cake!
Select or Download Code
Replies are listed 'Best First'.
Re^5: Ice cream and cake!
by pmonk4ever (Friar) on Sep 17, 2009 at 17:07 UTC
    Ok, I didn't understand that it would only compile, I thought it would execute a clever poem of some kind.

    Thanks for the reply.

    pmonk4ever

    "No trees were harmed in the creation of this comment. However, a rather large number of electrons were somewhat inconvenienced."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2015-07-31 12:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (277 votes), past polls