Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: "Safe" print?

by ambrus (Abbot)
on May 14, 2013 at 14:41 UTC ( #1033488=note: print w/replies, xml ) Need Help??


in reply to Re^2: "Safe" print?
in thread "Safe" print?

See that first line in my the code? It says use 5.010;. The // operator was new in perl 5.10. It's not new anymore now.

Replies are listed 'Best First'.
Re^4: "Safe" print?
by dd-b (Monk) on May 14, 2013 at 19:17 UTC

    And that's right where I am (CENTOS 6 packaged Perl).

    I know and heartily approve the "//" operator (except when I somehow get confused and use backslashes), but don't want to have to write special code each time I print something that I can't prove is defined quickly. However, the Dumper suggestion (and related) is useful, I'm just embarrassed I didn't think of it myself (that's for complex structures! In debugging!).

      don't want to have to write special code each time I print something

      Then write a subroutine and call that every time.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033488]
help
Chatterbox?
[ambrus]: holli: wait, plastic or glass bottle?
holli switches OS
[holli]: Lidl only sells plastic
[Corion]: holli: Oooh, a twister top - so yes, that's a worse state of mind than it sounded ;)
[holli]: and since I outed myself anyway as a horrible person, to top it off, the bottle contains beer. alcohol free beer
[Discipulus]: nowaday such beers have also a good taste
[Corion]: holli: Heh - if you consider alcohol free beer as a not-so-sweet lemonade, you're not that bad off ;)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (16)
As of 2017-09-25 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?