in reply to Re: Hi Monks could you pls help Perl dummy user
in thread Hi Monks could you pls help Perl dummy user

> Using warnings and strict (use warnings; use strict;) will help you with this and many other potential problems.

unfortunately do neither use strict nor use warnings complain about bareword filehandles, and nowadays I wonder why.

They don't have an explicit package name and localizing with a glob local *FH isn't trivial.

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)

Replies are listed 'Best First'.
Re^3: Hi Monks could you pls help Perl dummy user
by sibyurik (Novice) on Dec 17, 2014 at 01:58 UTC

    That's output for my program that doesn't go into any directories. Do you know why?

    yura@yura:~$ ls -a . .bashrc dir_tree .face +.goutputstream-51G14W .ICEauthority .mixxx Pictures .pu +lse-cookie Templates .xsession-errors.old .. .cache .dmrc .gconf +.goutputstream-F8CZ4W .java Mixxx .profile .Sk +ype Videos .adobe .compiz Documents .gnome2 +.goutputstream-TBVW4W java_progs module project .ss +h .viminfo .apport-ignore.xml .config Downloads .gnome2_private +.goutputstream-Z89K4W .local .mozilla project_final .sw +t workspace .bash_history .dbus .eclipse .goutputstream-11KV4W +.gstreamer-0.10 .macromedia Music Public sys +err.log .Xauthority .bash_logout Desktop examples.desktop .goutputstream-1UX14W +.gtk-bookmarks .mission-control perl .pulse sys +out.log .xsession-errors yura@yura:~$ perl dir_tree .ICEauthority 33170 module 433 project_final 4515 dir_tree 704 .profile 675 project 4486 sysout.log 19807 examples.desktop 8445 syserr.log 2350 .pulse-cookie 256 .xsession-errors.old 828 .viminfo 14093 .bash_history 17965 .face 9447 .bashrc 3637 .bash_logout 220 yura@yura:~$